[PATCH] D50634: [RISCV] Add support for local PIC addressing

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 13 12:09:12 PDT 2018


efriedma added inline comments.


================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:372
   } else {
-    report_fatal_error("Unable to lowerConstantPool");
+    return DAG.getNode(RISCVISD::WRAPPER_PIC, DL, Ty,
+                       DAG.getTargetConstantPool(CPA, Ty, Alignment, Offset,
----------------
rogfer01 wrote:
> I don't have a test for this case yet. I have been unable get SelectionDAGBuiler to generate a constantpool from LLVM IR.
> 
> Suggestions?
Try a floating-point constant?


https://reviews.llvm.org/D50634





More information about the llvm-commits mailing list