[PATCH] D94355: [Passes] Add relative lookup table converter pass

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 23 01:37:03 PDT 2021


arichardson added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp:91
+      ArrayType::get(Type::getInt32Ty(M.getContext()), NumElts);
+  GlobalVariable *RelLookupTable = new GlobalVariable(
+      M, IntArrayTy, LookupTable.isConstant(), LookupTable.getLinkage(),
----------------
This should use the same address space as the original global.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94355



More information about the cfe-commits mailing list