search for: getfpextend

Displaying 2 results from an estimated 2 matches for "getfpextend".

Did you mean: getextend
2019 Sep 26
2
ConstantFP->getType() is not right
Hi, I want to create a double constant from a float constant, here's my code: auto* constFloat1 = static_cast<llvm::ConstantFP*>(llvm::ConstantFP::get(llvm::Type::getFloatTy(context), 3.1)); assert(constFloat1->getType() == llvm::Type::getFloatTy(context)); auto* constFloat2 = llvm::ConstantFP::get(llvm::Type::getDoubleTy(context), constFloat1->getValueAPF());
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
...C, const Type *Ty) { return ConstantExpr::getSExt(C, Ty); } static Constant *GetZExt(Constant *C, const Type *Ty) { return ConstantExpr::getZExt(C, Ty); } static Constant *GetFPTrunc(Constant *C, const Type *Ty) { return ConstantExpr::getFPTrunc(C, Ty); } static Constant *GetFPExtend(Constant *C, const Type *Ty) { return ConstantExpr::getFPExtend(C, Ty); } static Constant *GetUIToFP(Constant *C, const Type *Ty) { return ConstantExpr::getUIToFP(C, Ty); } static Constant *GetSIToFP(Constant *C, const Type *Ty) { return ConstantExpr::getSIToFP(C, Ty); }...