Displaying 1 result from an estimated 1 matches for "gettypeforvaluetype".
2006 Sep 20
1
[LLVMdev] using the constant pool during select
...placed in a constant pool and loaded.
What I am trying to do is to have a select function that checks the if
a constant can be an immediate and, if it can't, produces a load:
---------------------------------------------------------------------------------------
const Type *OpNTy = MVT::getTypeForValueType(MVT::i32);
Constant *C = ConstantUInt::get(OpNTy, t);
int alignment = 2;
SDOperand Addr = CurDAG->getTargetConstantPool(C, MVT::i32, alignment);
Arg = CurDAG->getLoad(MVT::i32, CurDAG->getEntryNode(), Addr,
CurDAG->getSrcValue(NULL))...