16 #define GEN_PASS_DEF_LLVMREQUESTCWRAPPERS
17 #include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"
24 class RequestCWrappersPass
25 :
public LLVM::impl::LLVMRequestCWrappersBase<RequestCWrappersPass> {
27 void runOnOperation()
override {
28 getOperation()->setAttr(LLVM::LLVMDialect::getEmitCWrapperAttrName(),
35 return std::make_unique<RequestCWrappersPass>();
static MLIRContext * getContext(OpFoldResult val)
std::unique_ptr< Pass > createRequestCWrappersPass()
Include the generated interface declarations.
auto get(MLIRContext *context, Ts &&...params)
Helper method that injects context only if needed, this helps unify some of the attribute constructio...