/external/llvm/lib/IR/ |
Globals.cpp | 239 const ConstantExpr *CE = cast<ConstantExpr>(C);
|
Module.cpp | 165 return ConstantExpr::getBitCast(F, PointerType::getUnqual(Ty)); 265 /// with a constantexpr cast to the right type. 282 return ConstantExpr::getBitCast(GV, PointerType::getUnqual(Ty));
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.h | 168 else if (ConstantExpr *Cexpr = 169 dyn_cast<ConstantExpr>(v)) {
|
NVPTXAsmPrinter.cpp | 141 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); 194 Op = ConstantExpr::getIntegerCast(Op, TD.getIntPtrType(CV->getContext()), [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineAndOrXor.cpp | 138 Together = ConstantExpr::getAnd(AndRHS, OpRHS); 163 Together = ConstantExpr::getXor(AndRHS, Together); 277 assert(cast<ConstantInt>(ConstantExpr::getICmp((isSigned ? 293 Constant *NegLo = ConstantExpr::getNeg(Lo); 295 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Hi); 312 ConstantInt *NegLo = cast<ConstantInt>(ConstantExpr::getNeg(Lo)); 314 Constant *LowerBound = ConstantExpr::getAdd(NegLo, Hi); 356 if (ConstantExpr::getAnd(N, Mask) == Mask) { 380 && ConstantExpr::getAnd(N, Mask)->isNullValue()) 473 ConstantExpr::getAnd(ACst, CCst) == CCst) [all...] |
InstCombineLoadStoreAlloca.cpp | 32 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) 266 = ReplaceInstUsesWith(AI, ConstantExpr::getBitCast(TheSrc, 308 CastOp = ConstantExpr::getGetElementPtr(CSrc, Idxs); 398 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Op)) 662 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr))
|
InstCombineShifts.cpp | 191 // If we got a constantexpr back, try to simplify it with TD info. 192 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) 349 ConstantExpr::getShl(BOOp, Op1)); 370 Constant *ShAmt = ConstantExpr::getZExt(Op1, TrOp->getType()); 439 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), 469 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), 510 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); 710 return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A);
|
InstCombineAddSub.cpp | 814 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); 939 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), 987 return BinaryOperator::CreateMul(X, ConstantExpr::getAdd(C1, C2)); [all...] |
InstructionCombining.cpp | 320 Constant *Folded = ConstantExpr::get(Opcode, C1, C2); 521 return ConstantExpr::getNeg(C); 525 return ConstantExpr::getNeg(C); 540 return ConstantExpr::getFNeg(C); 544 return ConstantExpr::getFNeg(C); 561 return ConstantExpr::get(I.getOpcode(), SOC, ConstOperand); 562 return ConstantExpr::get(I.getOpcode(), ConstOperand, SOC); 650 if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal)) 714 InV = ConstantExpr::getCompare(CI->getPredicate(), InC, C); 728 InV = ConstantExpr::get(I.getOpcode(), InC, C) [all...] |
InstCombineCasts.cpp | 163 C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/); 164 // If we got a constantexpr back, try to simplify it with TD info. 165 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) 502 ConstantExpr::getTrunc(Cst, CI.getType())); 565 Res = ConstantExpr::getZExt(Res, CI.getType()); [all...] |
/external/llvm/lib/Transforms/Utils/ |
ValueMapper.cpp | 155 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
|
LowerSwitch.cpp | 190 Constant* NegLo = ConstantExpr::getNeg(Leaf.Low); 194 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High);
|
SimplifyCFG.cpp | 340 if (ConstantExpr *C = dyn_cast<ConstantExpr>(V)) 405 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) 413 (ConstantExpr::getIntegerCast(CI, PtrTy, /*isSigned=*/false)); [all...] |
/external/llvm/tools/llvm-diff/ |
DifferenceEngine.cpp | 380 if (isa<ConstantExpr>(L)) 381 return equivalentAsOperands(cast<ConstantExpr>(L), 382 cast<ConstantExpr>(R)); 398 bool equivalentAsOperands(ConstantExpr *L, ConstantExpr *R) {
|
/external/llvm/bindings/ocaml/llvm/ |
llvm.mli | 271 | ConstantExpr 792 more readable. See the method [llvm::ConstantExpr::getAlignOf]. *) 798 See the method [llvm::ConstantExpr::getSizeOf]. *) 802 See the method [llvm::ConstantExpr::getNeg]. *) 807 See the method [llvm::ConstantExpr::getNSWNeg]. *) 812 See the method [llvm::ConstantExpr::getNUWNeg]. *) 816 See the method [llvm::ConstantExpr::getFNeg]. *) 820 See the method [llvm::ConstantExpr::getNot]. *) 824 See the method [llvm::ConstantExpr::getAdd]. *) 829 See the method [llvm::ConstantExpr::getNSWAdd]. * [all...] |
/external/clang/lib/CodeGen/ |
CGRTTI.cpp | 153 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); 501 VTable = llvm::ConstantExpr::getInBoundsGetElementPtr(VTable, Two); 502 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); 576 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); 597 Fields.push_back(llvm::ConstantExpr::getBitCast(TypeName, CGM.Int8PtrTy)); 688 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); 719 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); [all...] |
ItaniumCXXABI.cpp | 455 return llvm::ConstantExpr::getNSWSub(src, adj); 457 return llvm::ConstantExpr::getNSWAdd(src, adj); 467 llvm::Constant *srcAdj = llvm::ConstantExpr::getExtractValue(src, 1); 470 dstAdj = llvm::ConstantExpr::getNSWSub(srcAdj, adj); 472 dstAdj = llvm::ConstantExpr::getNSWAdd(srcAdj, adj); 474 return llvm::ConstantExpr::getInsertValue(src, dstAdj, 1); 555 MemPtr[0] = llvm::ConstantExpr::getPtrToInt(addr, ptrdiff_t); [all...] |
CodeGenModule.cpp | 478 llvm::ConstantExpr::getBitCast(I->first, CtorPFTy) 728 llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(&*LLVMUsed[i]), [all...] |
/external/llvm/include/llvm/IR/ |
Constants.h | 785 /// ConstantExpr - a constant value that is initialized with an expression using 789 /// constant expressions. The Opcode field for the ConstantExpr class is 791 class ConstantExpr : public Constant { 792 friend struct ConstantCreator<ConstantExpr,Type, 794 friend struct ConvertConstantType<ConstantExpr, Type>; 797 ConstantExpr(Type *ty, unsigned Opcode, Use *Ops, unsigned NumOps) 804 // Static methods to construct a ConstantExpr of different kinds. Note that 806 // ConstantExpr class, because they will attempt to fold the constant [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolution.cpp | 388 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) 390 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0))) 405 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) 407 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(VCE->getOperand(0))) 430 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()) [all...] |
PHITransAddr.cpp | 200 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), 277 RHS = ConstantExpr::getAdd(RHS, CI);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
FunctionLoweringInfo.cpp | 287 if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) { 322 if (isa<UndefValue>(V) || isa<ConstantExpr>(V)) { 405 const ConstantExpr *CE = cast<ConstantExpr>(I.getArgOperand(1));
|
/external/llvm/lib/Linker/ |
LinkModules.cpp | 696 ValueMap[SrcGV] = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType())); 698 DstGV->replaceAllUsesWith(ConstantExpr::getBitCast(NG, DstGV->getType())); 740 ValueMap[SGV] = ConstantExpr::getBitCast(DGV,TypeMap.get(SGV->getType())); 765 DGV->replaceAllUsesWith(ConstantExpr::getBitCast(NewDGV, DGV->getType())); 794 ValueMap[SF] = ConstantExpr::getBitCast(DGV, TypeMap.get(SF->getType())); 814 DGV->replaceAllUsesWith(ConstantExpr::getBitCast(NewDF, DGV->getType())); [all...] |
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
BitcodeReader.cpp | 213 class ConstantPlaceHolder : public ConstantExpr { 221 : ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) { 228 return isa<ConstantExpr>(V) && 229 cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1; 238 // FIXME: can we inherit this from ConstantExpr? 376 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); 377 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); [all...] |
/external/llvm/lib/CodeGen/ |
ShadowStackGC.cpp | 213 Metadata.push_back(ConstantExpr::getBitCast(C, VoidPtr)); 255 return ConstantExpr::getGetElementPtr(GV, GEPIndices);
|