Home
last modified time | relevance | path

Searched refs:CastInst (Results 1 – 25 of 233) sorted by relevance

12345678910

/external/llvm/unittests/IR/
DInstructionsTest.cpp171 TEST(InstructionsTest, CastInst) { in TEST() argument
210 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy)); in TEST()
211 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty)); in TEST()
212 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy)); in TEST()
213 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty)); in TEST()
214 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty)); in TEST()
215 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true)); in TEST()
216 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true)); in TEST()
218 EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, X86MMXTy)); in TEST()
219 EXPECT_FALSE(CastInst::isBitCastable(X86MMXTy, V8x8Ty)); in TEST()
[all …]
DValueHandleTest.cpp105 AssertingVH<CastInst> AVH(BitcastV.get()); in TEST_F()
106 CastInst *implicit_to_exact_type = AVH; in TEST_F()
121 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F()
122 AssertingVH<const CastInst> AVH(ConstBitcast); in TEST_F()
123 const CastInst *implicit_to_exact_type = AVH; in TEST_F()
169 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>)); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp183 TEST(InstructionsTest, CastInst) { in TEST() argument
222 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy)); in TEST()
223 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty)); in TEST()
224 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy)); in TEST()
225 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty)); in TEST()
226 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty)); in TEST()
227 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true)); in TEST()
228 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true)); in TEST()
230 EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, X86MMXTy)); in TEST()
231 EXPECT_FALSE(CastInst::isBitCastable(X86MMXTy, V8x8Ty)); in TEST()
[all …]
DValueHandleTest.cpp123 AssertingVH<CastInst> AVH(BitcastV.get()); in TEST_F()
124 CastInst *implicit_to_exact_type = AVH; in TEST_F()
139 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F()
140 AssertingVH<const CastInst> AVH(ConstBitcast); in TEST_F()
141 const CastInst *implicit_to_exact_type = AVH; in TEST_F()
187 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>)); in TEST_F()
434 PoisoningVH<CastInst> VH(BitcastV.get()); in TEST_F()
435 CastInst *implicit_to_exact_type = VH; in TEST_F()
450 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F()
451 PoisoningVH<const CastInst> VH(ConstBitcast); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DInstVisitor.h178 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst); } in visitTruncInst()
179 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst); } in visitZExtInst()
180 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst); } in visitSExtInst()
181 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst); } in visitFPTruncInst()
182 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst); } in visitFPExtInst()
183 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst); } in visitFPToUIInst()
184 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst); } in visitFPToSIInst()
185 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst); } in visitUIToFPInst()
186 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst); } in visitSIToFPInst()
187 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst); } in visitPtrToIntInst()
[all …]
DNoFolder.h204 return CastInst::Create(Op, C, DestTy); in CreateCast()
207 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
211 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
214 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
227 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast()
230 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast()
234 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DInstructionsTest.cpp111 TEST(InstructionsTest, CastInst) { in TEST() argument
123 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy)); in TEST()
124 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty)); in TEST()
125 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy)); in TEST()
126 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty)); in TEST()
127 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty)); in TEST()
128 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true)); in TEST()
129 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstVisitor.h188 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst()
189 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst()
190 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst()
191 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);} in visitFPTruncInst()
192 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);} in visitFPExtInst()
193 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);} in visitFPToUIInst()
194 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);} in visitFPToSIInst()
195 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);} in visitUIToFPInst()
196 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);} in visitSIToFPInst()
197 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);} in visitPtrToIntInst()
[all …]
DInstrTypes.h592 class CastInst : public UnaryInstruction {
595 CastInst(Type *Ty, unsigned iType, Value *S,
601 CastInst(Type *Ty, unsigned iType, Value *S,
614 static CastInst *Create(
627 static CastInst *Create(
636 static CastInst *CreateZExtOrBitCast(
644 static CastInst *CreateZExtOrBitCast(
652 static CastInst *CreateSExtOrBitCast(
660 static CastInst *CreateSExtOrBitCast(
668 static CastInst *CreatePointerCast(
[all …]
DNoFolder.h252 return CastInst::Create(Op, C, DestTy); in CreateCast()
256 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
261 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
265 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
281 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast()
285 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast()
289 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
/external/llvm/include/llvm/IR/
DInstVisitor.h185 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst()
186 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst()
187 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst()
188 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);} in visitFPTruncInst()
189 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);} in visitFPExtInst()
190 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);} in visitFPToUIInst()
191 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);} in visitFPToSIInst()
192 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);} in visitUIToFPInst()
193 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);} in visitSIToFPInst()
194 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);} in visitPtrToIntInst()
[all …]
DInstrTypes.h564 class CastInst : public UnaryInstruction {
569 CastInst(Type *Ty, unsigned iType, Value *S,
575 CastInst(Type *Ty, unsigned iType, Value *S,
588 static CastInst *Create(
601 static CastInst *Create(
610 static CastInst *CreateZExtOrBitCast(
618 static CastInst *CreateZExtOrBitCast(
626 static CastInst *CreateSExtOrBitCast(
634 static CastInst *CreateSExtOrBitCast(
642 static CastInst *CreatePointerCast(
[all …]
DNoFolder.h217 return CastInst::Create(Op, C, DestTy); in CreateCast()
220 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
224 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
227 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
240 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast()
243 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast()
247 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstrTypes.h390 class CastInst : public UnaryInstruction {
393 CastInst(Type *Ty, unsigned iType, Value *S,
399 CastInst(Type *Ty, unsigned iType, Value *S,
411 static CastInst *Create(
424 static CastInst *Create(
433 static CastInst *CreateZExtOrBitCast(
441 static CastInst *CreateZExtOrBitCast(
449 static CastInst *CreateSExtOrBitCast(
457 static CastInst *CreateSExtOrBitCast(
465 static CastInst *CreatePointerCast(
[all …]
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp124 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
125 if (CastInst->isCast()) in findMatInsertPt()
126 return CastInst; in findMatInsertPt()
249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
252 if (!CastInst->isCast()) in collectConstantCandidates()
255 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
502 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
503 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
506 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
508 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/
DProfilingUtils.cpp73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy, in InsertProfilingInitCall()
76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall)); in InsertProfilingInitCall()
89 opcode = CastInst::getCastOpcode(InitCall, true, AI->getType(), true); in InsertProfilingInitCall()
91 CastInst::Create(opcode, InitCall, AI->getType(), "", InsertPos)); in InsertProfilingInitCall()
93 opcode = CastInst::getCastOpcode(AI, true, in InsertProfilingInitCall()
96 CastInst::Create(opcode, AI, Type::getInt32Ty(Context), in InsertProfilingInitCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp420 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
423 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
2165 bool CastInst::isIntegerCast() const { in isIntegerCast()
2178 bool CastInst::isLosslessCast() const { in isLosslessCast()
2203 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast()
2232 bool CastInst::isNoopCast(const DataLayout &DL) const { in isNoopCast()
2244 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair()
2461 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
2483 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
2505 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
2002 bool CastInst::isIntegerCast() const { in isIntegerCast()
2015 bool CastInst::isLosslessCast() const { in isLosslessCast()
2040 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast()
2069 bool CastInst::isNoopCast(Type *IntPtrTy) const { in isNoopCast()
2081 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair()
2248 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
2271 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
2294 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DPHITransAddr.cpp31 if (isa<CastInst>(Inst) && in CanPHITrans()
188 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr()
205 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr()
381 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr()
388 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DPHITransAddr.cpp29 if (isa<CastInst>(Inst) && in CanPHITrans()
188 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr()
206 if (CastInst *CastI = dyn_cast<CastInst>(*UI)) in PHITranslateSubExpr()
383 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr()
390 CastInst *New = CastInst::Create(Cast->getOpcode(), in InsertPHITranslatedSubExpr()
/external/llvm/lib/IR/
DInstructions.cpp458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
2326 void CastInst::anchor() {} in anchor()
2329 bool CastInst::isIntegerCast() const { in isIntegerCast()
2342 bool CastInst::isLosslessCast() const { in isLosslessCast()
2367 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast()
2397 bool CastInst::isNoopCast(Type *IntPtrTy) const { in isNoopCast()
2401 bool CastInst::isNoopCast(const DataLayout &DL) const { in isNoopCast()
2422 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair()
2646 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
[all …]
/external/llvm/lib/Analysis/
DPHITransAddr.cpp30 if (isa<CastInst>(Inst) && in CanPHITrans()
190 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr()
207 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr()
384 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr()
391 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp162 static void createRetBitCast(CallSite CS, Type *RetTy, CastInst **RetBitCast) { in createRetBitCast()
180 auto *Cast = CastInst::Create(Instruction::BitCast, CS.getInstruction(), in createRetBitCast()
329 if (!CastInst::isBitCastable(FuncRetTy, CallRetTy)) { in isLegalToPromote()
354 if (!CastInst::isBitCastable(ActualTy, FormalTy)) { in isLegalToPromote()
365 CastInst **RetBitCast) { in promoteCall()
399 auto *Cast = CastInst::Create(Instruction::BitCast, Arg, FormalTy, "", in promoteCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp163 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
164 if (CastInst->isCast()) in findMatInsertPt()
165 return CastInst; in findMatInsertPt()
389 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
392 if (!CastInst->isCast()) in collectConstantCandidates()
395 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
662 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
663 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
666 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
668 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
[all …]
/external/swiftshader/third_party/LLVM/unittests/Support/
DValueHandleTest.cpp109 AssertingVH<CastInst> AVH(BitcastV.get()); in TEST_F()
110 CastInst *implicit_to_exact_type = AVH; in TEST_F()
125 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F()
126 AssertingVH<const CastInst> AVH(ConstBitcast); in TEST_F()
127 const CastInst *implicit_to_exact_type = AVH; in TEST_F()
173 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>)); in TEST_F()

12345678910