[PATCH] D73795: [mlir] Drop customization hooks from StandardToLLVM conversion

Frank Laub via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 1 01:27:52 PST 2020


flaub added a comment.

Note: the issue I'm running into is being able to write lit tests that uses the LLVMLoweringPass along with some extra custom patterns. I was able to do that with this little bit of code:

  static PassRegistration<Pass> pass("convert-stdx-to-llvm", "Convert stdx to the LLVM dialect", []() {
    return createLowerToLLVMPass([](auto& converter, auto& patterns) {
      populateStdToLLVMConversionPatterns(converter, patterns);
      populateStdXToLLVMConversionPatterns(converter, patterns);
    });
  });


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73795/new/

https://reviews.llvm.org/D73795





More information about the llvm-commits mailing list