How to get the Constant FP value from a load from a constant pool in LLVM CodeGen?
Hi I have the following IR, I would like to get either ConstantFP or ConstantFPSDNode on the operand of this foo ( SDNode ) here’s what I see in gdb, I see that this float value is not lowered to a DAG constant, instead it is a load from a constant pool. I need to get this constant value in ConstantFP
or ConstantFPSDNode
for which I’m trying to do some canonicalization on the APFloat
of this Constant FP value. Operand
is the load from constant pool instruction.