reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/InstrTypes.h
  705   static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);

References

lib/Analysis/ConstantFolding.cpp
   96   assert(CastInst::castIsValid(Instruction::BitCast, C, DestTy) &&
  342       if (CastInst::castIsValid(Cast, C, DestTy))
lib/Analysis/LoopUnrollAnalyzer.cpp
  154   if (COp && CastInst::castIsValid(I.getOpcode(), COp, I.getType())) {
lib/AsmParser/LLParser.cpp
 3329     if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy))
 6553   if (!CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy)) {
 6554     CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy);
lib/Bitcode/Reader/BitcodeReader.cpp
 3943         if (!CastInst::castIsValid(CastOp, Op, ResTy))
lib/IR/AutoUpgrade.cpp
 3883           !CastInst::castIsValid(Instruction::BitCast, CI,
 3897           if (!CastInst::castIsValid(Instruction::BitCast, Arg,
lib/IR/Constants.cpp
 1566   assert(CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!");
 1806   assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) &&
 1818   assert(CastInst::castIsValid(Instruction::AddrSpaceCast, C, DstTy) &&
lib/IR/Instructions.cpp
 2749   assert(castIsValid(op, S, Ty) && "Invalid cast!");
 2771   assert(castIsValid(op, S, Ty) && "Invalid cast!");
 3305   assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc");
 3311   assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc");
 3317   assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt");
 3323   assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt");
 3328   assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt");
 3334   assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt");
 3340   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPTrunc");
 3346   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPTrunc");
 3352   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt");
 3358   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt");
 3364   assert(castIsValid(getOpcode(), S, Ty) && "Illegal UIToFP");
 3370   assert(castIsValid(getOpcode(), S, Ty) && "Illegal UIToFP");
 3376   assert(castIsValid(getOpcode(), S, Ty) && "Illegal SIToFP");
 3382   assert(castIsValid(getOpcode(), S, Ty) && "Illegal SIToFP");
 3388   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToUI");
 3394   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToUI");
 3400   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToSI");
 3406   assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToSI");
 3412   assert(castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt");
 3418   assert(castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt");
 3424   assert(castIsValid(getOpcode(), S, Ty) && "Illegal IntToPtr");
 3430   assert(castIsValid(getOpcode(), S, Ty) && "Illegal IntToPtr");
 3436   assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast");
 3442   assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast");
 3448   assert(castIsValid(getOpcode(), S, Ty) && "Illegal AddrSpaceCast");
 3454   assert(castIsValid(getOpcode(), S, Ty) && "Illegal AddrSpaceCast");
lib/IR/Verifier.cpp
 1913     Assert(CastInst::castIsValid(Instruction::BitCast, CE->getOperand(0),
 2770       CastInst::castIsValid(Instruction::BitCast, I.getOperand(0), I.getType()),
unittests/IR/InstructionsTest.cpp
  275   EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast,
  278   EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast,
  282   EXPECT_FALSE(CastInst::castIsValid(Instruction::AddrSpaceCast,
  285   EXPECT_FALSE(CastInst::castIsValid(Instruction::AddrSpaceCast,