/external/swiftshader/third_party/LLVM/utils/TableGen/ |
H A D | CallingConvEmitter.cpp | 179 Record *DestTy = Action->getValueAsDef("DestTy"); local 180 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 188 Record *DestTy = Action->getValueAsDef("DestTy"); local 189 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 192 Record *DestTy = Action->getValueAsDef("DestTy"); local 193 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
|
/external/llvm/utils/TableGen/ |
H A D | CallingConvEmitter.cpp | 222 Record *DestTy = Action->getValueAsDef("DestTy"); local 223 MVT::SimpleValueType DestVT = getValueType(DestTy); 236 Record *DestTy = Action->getValueAsDef("DestTy"); local 237 MVT::SimpleValueType DestVT = getValueType(DestTy); 251 Record *DestTy = Action->getValueAsDef("DestTy"); local 252 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 255 Record *DestTy local [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXFavorNonGenericAddrSpaces.cpp | 134 PointerType *DestTy = cast<PointerType>(Cast->getType()); local 139 if (SrcTy->getElementType() != DestTy->getElementType()) 145 DestTy->getAddressSpace() == AddressSpace::ADDRESS_SPACE_GENERIC);
|
H A D | NVPTXGenericToNVVM.cpp | 180 Type *DestTy = PointerType::get(Type::getInt8Ty(Context), AddrSpace); local 181 CVTA = Builder.CreateBitCast(GV, DestTy, "cvta"); 186 M, Intrinsic::nvvm_ptr_global_to_gen, {ResultType, DestTy}); 190 DestTy = 192 CVTA = Builder.CreateBitCast(CVTA, DestTy, "cvta");
|
H A D | NVPTXISelDAGToDAG.cpp | 5199 /// conversion from \p SrcTy to \p DestTy. 5200 unsigned NVPTXDAGToDAGISel::GetConvertOpcode(MVT DestTy, MVT SrcTy, argument 5206 switch (DestTy.SimpleTy) { 5217 switch (DestTy.SimpleTy) { 5228 switch (DestTy.SimpleTy) { 5239 switch (DestTy.SimpleTy) {
|
/external/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 157 Type *DestTy) const { 158 return ConstantExpr::getCast(Op, C, DestTy); 160 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 161 return ConstantExpr::getPointerCast(C, DestTy); 165 Type *DestTy) const { 166 return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy); 169 Constant *CreateIntCast(Constant *C, Type *DestTy, argument 171 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); 173 Constant *CreateFPCast(Constant *C, Type *DestTy) const { 174 return ConstantExpr::getFPCast(C, DestTy); [all...] |
H A D | NoFolder.h | 216 Type *DestTy) const { 217 return CastInst::Create(Op, C, DestTy); 219 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { 220 return CastInst::CreatePointerCast(C, DestTy); 222 Instruction *CreateIntCast(Constant *C, Type *DestTy, argument 224 return CastInst::CreateIntegerCast(C, DestTy, isSigned); 226 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { 227 return CastInst::CreateFPCast(C, DestTy); 230 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { 231 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
H A D | 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, argument 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...] |
H A D | 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, argument 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...] |
H A D | NoFolder.h | 203 Type *DestTy) const { 204 return CastInst::Create(Op, C, DestTy); 206 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { 207 return CastInst::CreatePointerCast(C, DestTy); 209 Instruction *CreateIntCast(Constant *C, Type *DestTy, argument 211 return CastInst::CreateIntegerCast(C, DestTy, isSigned); 213 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { 214 return CastInst::CreateFPCast(C, DestTy); 217 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { 218 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 94 PointerType *DestTy = cast<PointerType>(CI->getType()); local 95 Type *DestPTy = DestTy->getElementType(); 99 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
|
/external/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 169 Type *DestTy) const { 170 if (C->getType() == DestTy) 172 return Fold(ConstantExpr::getCast(Op, C, DestTy)); 174 Constant *CreateIntCast(Constant *C, Type *DestTy, argument 176 if (C->getType() == DestTy) 178 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); 180 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 181 if (C->getType() == DestTy) 183 return Fold(ConstantExpr::getPointerCast(C, DestTy)); 185 Constant *CreateFPCast(Constant *C, Type *DestTy) cons [all...] |
/external/llvm/lib/IR/ |
H A D | ConstantsContext.h | 169 Type *DestTy) 170 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1), 201 ArrayRef<unsigned> IdxList, Type *DestTy) 202 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2), 229 ArrayRef<Constant *> IdxList, Type *DestTy); 234 Type *DestTy, unsigned Flags) { 236 GetElementPtrConstantExpr(SrcElementTy, C, IdxList, DestTy); 168 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, Type *DestTy) argument 200 InsertValueConstantExpr(Constant *Agg, Constant *Val, ArrayRef<unsigned> IdxList, Type *DestTy) argument 232 Create(Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy, unsigned Flags) argument
|
H A D | AutoUpgrade.cpp | 1396 Instruction *llvm::UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy, argument 1403 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 1404 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 1412 return CastInst::Create(Instruction::IntToPtr, Temp, DestTy); 1418 Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) { argument 1423 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 1424 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 1432 DestTy);
|
H A D | ConstantFold.cpp | 100 static Constant *FoldBitCast(Constant *V, Type *DestTy) { argument 102 if (SrcTy == DestTy) 108 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) 139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { 146 return Constant::getNullValue(DestTy); 162 return ConstantPointerNull::get(cast<PointerType>(DestTy)); 166 if (DestTy->isIntegerTy()) 172 if (DestTy->isFloatingPointTy() && !DestTy->isPPC_FP128Ty()) 173 return ConstantFP::get(DestTy 351 getFoldedSizeOf(Type *Ty, Type *DestTy, bool Folded) argument 407 getFoldedAlignOf(Type *Ty, Type *DestTy, bool Folded) argument 472 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument 522 ConstantFoldCastInstruction(unsigned opc, Constant *V, Type *DestTy) argument [all...] |
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 488 Type *DestTy = pickScalarType(); variable 493 DestTy = pickVectorType(VecTy->getNumElements()); 497 if (VTy == DestTy) return; 501 if (!DestTy->isPointerTy()) 502 DestTy = PointerType::get(DestTy, 0); 504 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); 508 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); 513 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); 518 DestTy [all...] |
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
H A D | ConstantsContext.h | 162 Type *DestTy) 163 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1), 187 Type *DestTy) 188 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2), 206 Type *DestTy); 210 Type *DestTy, 213 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy); 160 ExtractValueConstantExpr(Constant *Agg, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument 185 InsertValueConstantExpr(Constant *Agg, Constant *Val, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument 208 Create(Constant *C, const std::vector<Constant*>&IdxList, Type *DestTy, unsigned Flags) argument
|
H A D | ConstantFold.cpp | 98 static Constant *FoldBitCast(Constant *V, Type *DestTy) { argument 100 if (SrcTy == DestTy) 106 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) 135 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { 142 return Constant::getNullValue(DestTy); 158 return ConstantPointerNull::get(cast<PointerType>(DestTy)); 162 if (DestTy->isIntegerTy()) 167 if (DestTy->isFloatingPointTy()) 168 return ConstantFP::get(DestTy->getContext(), 170 !DestTy 334 getFoldedSizeOf(Type *Ty, Type *DestTy, bool Folded) argument 391 getFoldedAlignOf(Type *Ty, Type *DestTy, bool Folded) argument 457 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument 507 ConstantFoldCastInstruction(unsigned opc, Constant *V, Type *DestTy) argument [all...] |
/external/clang/lib/Parse/ |
H A D | ParseExpr.cpp | 2104 TypeResult DestTy = ParseTypeName(); local 2105 if (DestTy.isInvalid()) 2115 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc, 2133 TypeResult DestTy = ParseTypeName(); local 2134 if (DestTy.isInvalid()) 2144 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc,
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 752 Type* DestTy = CE->getType(); local 756 assert(DestTy->isFloatingPointTy() && "invalid bitcast"); 757 if (DestTy->isFloatTy()) 759 else if (DestTy->isDoubleTy()) 763 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); 767 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); 771 assert(DestTy->isPointerTy() && "Invalid bitcast");
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 766 Type *DestTy = local 770 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | ConstantFolding.cpp | 46 static Constant *FoldBitCast(Constant *C, Type *DestTy, argument 49 if (C->isNullValue() && !DestTy->isX86_MMXTy()) 50 return Constant::getNullValue(DestTy); 51 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy()) 52 return Constant::getAllOnesValue(DestTy); 55 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); 57 return ConstantExpr::getBitCast(C, DestTy); 63 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); 69 return ConstantExpr::getBitCast(C, DestTy); 75 return ConstantExpr::getBitCast(C, DestTy); 818 ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, ArrayRef<Constant *> Ops, const TargetData *TD) argument [all...] |
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 652 Type* DestTy = CE->getType(); local 656 assert(DestTy->isFloatingPointTy() && "invalid bitcast"); 657 if (DestTy->isFloatTy()) 659 else if (DestTy->isDoubleTy()) 663 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); 667 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); 671 assert(DestTy->isPointerTy() && "Invalid bitcast");
|
/external/clang/lib/CodeGen/ |
H A D | CGExprComplex.cpp | 150 ComplexPairTy EmitCast(CastKind CK, Expr *Op, QualType DestTy); 424 QualType DestTy) { 440 V = Builder.CreateElementBitCast(V, CGF.ConvertType(DestTy)); 441 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy), Op->getExprLoc()); 492 DestTy, Op->getExprLoc()); 498 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy, 423 EmitCast(CastKind CK, Expr *Op, QualType DestTy) argument
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 55 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { argument 57 if (C->isNullValue() && !DestTy->isX86_MMXTy()) 58 return Constant::getNullValue(DestTy); 59 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() && 60 !DestTy->isPtrOrPtrVectorTy()) // Don't get ones for ptr types! 61 return Constant::getAllOnesValue(DestTy); 64 if (auto *IT = dyn_cast<IntegerType>(DestTy)) { 67 return ConstantExpr::getBitCast(C, DestTy); 95 return ConstantExpr::getBitCast(C, DestTy); 105 auto *DestVTy = dyn_cast<VectorType>(DestTy); 497 ConstantFoldLoadThroughBitcast(ConstantExpr *CE, Type *DestTy, const DataLayout &DL) argument 923 ConstantFoldInstOperandsImpl(const Value *InstOrCE, Type *DestTy, unsigned Opcode, ArrayRef<Constant *> Ops, const DataLayout &DL, const TargetLibraryInfo *TLI) argument 1082 ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, ArrayRef<Constant *> Ops, const DataLayout &DL, const TargetLibraryInfo *TLI) argument 1181 ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy, const DataLayout &DL) argument [all...] |