Searched refs:castIsValid (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 288 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 291 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 304 EXPECT_FALSE(CastInst::castIsValid( in TEST() 312 EXPECT_FALSE(CastInst::castIsValid( in TEST() 322 EXPECT_TRUE(CastInst::castIsValid( in TEST() 331 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 334 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 337 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 340 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST() 351 EXPECT_TRUE(CastInst::castIsValid(Instruction::BitCast, in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 3187 assert(castIsValid(op, S, Ty) && "Invalid cast!"); in Create() 3209 assert(castIsValid(op, S, Ty) && "Invalid cast!"); in Create() 3672 assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc"); in TruncInst() 3678 assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc"); in TruncInst() 3684 assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt"); in ZExtInst() 3690 assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt"); in ZExtInst() 3695 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt"); in SExtInst() 3701 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt"); in SExtInst() 3719 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt"); in FPExtInst() 3725 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt"); in FPExtInst() [all …]
|
| H A D | Constants.cpp | 1948 assert(CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"); in getCast() 2201 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast() 2213 assert(CastInst::castIsValid(Instruction::AddrSpaceCast, C, DstTy) && in getAddrSpaceCast()
|
| H A D | AutoUpgrade.cpp | 4278 !CastInst::castIsValid(Instruction::BitCast, CI, in UpgradeARCRuntime() 4292 if (!CastInst::castIsValid(Instruction::BitCast, Arg, in UpgradeARCRuntime()
|
| H A D | Verifier.cpp | 2194 Check(CastInst::castIsValid(Instruction::BitCast, CE->getOperand(0), in visitConstantExpr() 3105 CastInst::castIsValid(Instruction::BitCast, I.getOperand(0), I.getType()), in visitBitCastInst()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | LoopUnrollAnalyzer.cpp | 159 if (CastInst::castIsValid(I.getOpcode(), Op, I.getType())) { in visitCastInst()
|
| H A D | ConstantFolding.cpp | 105 assert(CastInst::castIsValid(Instruction::BitCast, C, DestTy) && in FoldBitCast() 379 if (CastInst::castIsValid(Cast, C, DestTy)) in ConstantFoldLoadThroughBitcast()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | vscale_gep.ll | 4 ; This test is used to verify we are not crashing at Assertion `CastInst::castIsValid(opc, C, Ty) &…
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | InstrTypes.h | 689 static bool castIsValid(Instruction::CastOps op, Type *SrcTy, Type *DstTy); 690 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) { 691 return castIsValid(op, S->getType(), DstTy);
|
| /llvm-project-15.0.7/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 3471 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in parseValID() 6874 if (!CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy)) { in parseCast() 6875 CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy); in parseCast()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 4744 if (!CastInst::castIsValid(CastOp, Op, ResTy)) in parseFunctionBody()
|