This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add an 'cppNamespace' field to availability
ClosedPublic

Authored by antiagainst on Aug 18 2021, 11:20 AM.

Details

Summary

This allows us to generate interfaces in a namespace,
following other TableGen'erated code.

Depends On D108310

Diff Detail

Event Timeline

antiagainst created this revision.Aug 18 2021, 11:20 AM
antiagainst requested review of this revision.Aug 18 2021, 11:20 AM
rriddle accepted this revision.Aug 23 2021, 11:12 AM
rriddle added inline comments.
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAvailability.td
23

Would it be possible to use cppNamespace instead? That matches the naming scheme used everywhere else.

mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
259
This revision is now accepted and ready to land.Aug 23 2021, 11:12 AM
antiagainst marked 2 inline comments as done.

Address comments

mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
259

Oh, didn't know about that. Changed.

antiagainst retitled this revision from [mlir] Add an 'interfaceNamespace' field to availability to [mlir] Add an 'cppNamespace' field to availability.Aug 23 2021, 4:42 PM
This revision was automatically updated to reflect the committed changes.