[PATCH] D54647: [WebAssembly] Initial implementation of -fPIC codegeneration

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 16:32:45 PDT 2019


tlively accepted this revision.
tlively added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp:422
+
+    unsigned OpcConst = WebAssembly::CONST_I32;
+    unsigned ConstReg = createResultReg(&WebAssembly::I32RegClass);
----------------
sbc100 wrote:
> tlively wrote:
> > Should this be dependent on `Subtarget->hasAddr64()` like `Opc` is?
> Hmm , good question.   I'm temped to not to add to much wasm64 code because we have no way of testing it and its premature .. so I think I'll just remove the ternary above.
sounds good to me!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D54647





More information about the llvm-commits mailing list