/external/llvm/include/llvm/Support/ |
TargetFolder.h | 168 Type *DestTy) const { 169 if (C->getType() == DestTy) 171 return Fold(ConstantExpr::getCast(Op, C, DestTy)); 173 Constant *CreateIntCast(Constant *C, Type *DestTy, 175 if (C->getType() == DestTy) 177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); 179 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 180 return ConstantExpr::getPointerCast(C, DestTy); 182 Constant *CreateBitCast(Constant *C, Type *DestTy) const { 183 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
ConstantFolder.h | 156 Type *DestTy) const { 157 return ConstantExpr::getCast(Op, C, DestTy); 159 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 160 return ConstantExpr::getPointerCast(C, DestTy); 162 Constant *CreateIntCast(Constant *C, Type *DestTy, 164 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); 166 Constant *CreateFPCast(Constant *C, Type *DestTy) const { 167 return ConstantExpr::getFPCast(C, DestTy); 170 Constant *CreateBitCast(Constant *C, Type *DestTy) const { 171 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
NoFolder.h | 215 Type *DestTy) const { 216 return CastInst::Create(Op, C, DestTy); 218 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { 219 return CastInst::CreatePointerCast(C, DestTy); 221 Instruction *CreateIntCast(Constant *C, Type *DestTy, 223 return CastInst::CreateIntegerCast(C, DestTy, isSigned); 225 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { 226 return CastInst::CreateFPCast(C, DestTy); 229 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { 230 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCasts.cpp | 437 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); 443 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 444 CanEvaluateTruncated(Src, DestTy)) { 450 Value *Res = EvaluateInDifferentType(Src, DestTy, false); 451 assert(Res->getType() == DestTy); 456 if (DestTy->getScalarSizeInBits() == 1) { 754 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); 761 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) & [all...] |
InstCombineLoadStoreAlloca.cpp | 298 PointerType *DestTy = cast<PointerType>(CI->getType()); 299 Type *DestPTy = DestTy->getElementType(); 303 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
|
/external/llvm/lib/VMCore/ |
ConstantFold.cpp | 95 static Constant *FoldBitCast(Constant *V, Type *DestTy) { 97 if (SrcTy == DestTy) 103 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) 133 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { 140 return Constant::getNullValue(DestTy); 156 return ConstantPointerNull::get(cast<PointerType>(DestTy)); 160 if (DestTy->isIntegerTy()) 165 if (DestTy->isFloatingPointTy()) 166 return ConstantFP::get(DestTy->getContext(), 168 !DestTy->isPPC_FP128Ty())) [all...] |
Verifier.cpp | [all...] |
ConstantFold.h | 33 Type *DestTy ///< The destination type
|
Core.cpp | [all...] |
ConstantsContext.h | 171 Type *DestTy) 172 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1), 197 Type *DestTy) 198 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2), 217 Type *DestTy); 221 Type *DestTy, 224 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy);
|
Instructions.cpp | [all...] |
/external/llvm/utils/TableGen/ |
CallingConvEmitter.cpp | 194 Record *DestTy = Action->getValueAsDef("DestTy"); 195 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 203 Record *DestTy = Action->getValueAsDef("DestTy"); 204 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 207 Record *DestTy = Action->getValueAsDef("DestTy"); 208 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
|
/external/llvm/tools/llvm-stress/ |
llvm-stress.cpp | 477 Type *DestTy = pickScalarType(); 482 DestTy = pickVectorType(VecTy->getNumElements()); 486 if (VTy == DestTy) return; 490 if (!DestTy->isPointerTy()) 491 DestTy = PointerType::get(DestTy, 0); 493 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); 497 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); 502 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); 507 DestTy->getScalarType()->isIntegerTy()) [all...] |
/external/llvm/include/llvm/ |
IRBuilder.h | [all...] |
/external/llvm/include/llvm/Analysis/ |
ConstantFolding.h | 55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
|
/external/llvm/include/llvm-c/ |
Core.h | [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 47 static Constant *FoldBitCast(Constant *C, Type *DestTy, 50 if (C->isNullValue() && !DestTy->isX86_MMXTy()) 51 return Constant::getNullValue(DestTy); 52 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy()) 53 return Constant::getAllOnesValue(DestTy); 56 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) { 59 return ConstantExpr::getBitCast(C, DestTy); 92 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); 94 return ConstantExpr::getBitCast(C, DestTy); 100 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD) [all...] |
/external/clang/lib/CodeGen/ |
CGExprComplex.cpp | 145 ComplexPairTy EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy); 370 QualType DestTy) { 386 CGF.ConvertType(CGF.getContext().getPointerType(DestTy))); 388 return EmitLoadOfComplex(V, DestTy.isVolatileQualified()); 438 DestTy = DestTy->getAs<ComplexType>()->getElementType(); 439 Elt = CGF.EmitScalarConversion(Elt, Op->getType(), DestTy); 449 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy);
|
CGExprCXX.cpp | [all...] |
CGExprConstant.cpp | [all...] |
CGExprScalar.cpp | [all...] |
CGObjC.cpp | [all...] |
/external/clang/lib/Sema/ |
SemaCast.cpp | [all...] |
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 662 Type* DestTy = CE->getType(); 666 assert(DestTy->isFloatingPointTy() && "invalid bitcast"); 667 if (DestTy->isFloatTy()) 669 else if (DestTy->isDoubleTy()) 673 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); 677 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); 681 assert(DestTy->isPointerTy() && "Invalid bitcast"); [all...] |
/external/llvm/lib/AsmParser/ |
LLParser.cpp | [all...] |