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

Declarations

include/llvm/IR/InstrTypes.h
  616   static bool isBitCastable(

References

lib/IR/Instructions.cpp
 3074   return isBitCastable(SrcTy, DestTy);
lib/Transforms/Coroutines/Coroutines.cpp
  413           if (CastInst::isBitCastable(SrcTy, *RI)) {
tools/clang/lib/CodeGen/CGAtomic.cpp
 1403     else if (llvm::CastInst::isBitCastable(IntVal->getType(), ValTy))
 1589       else if (llvm::BitCastInst::isBitCastable(Value->getType(), InputIntTy))
unittests/IR/InstructionsTest.cpp
  229   EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, X86MMXTy));
  230   EXPECT_FALSE(CastInst::isBitCastable(X86MMXTy, V8x8Ty));
  231   EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, X86MMXTy));
  232   EXPECT_FALSE(CastInst::isBitCastable(V8x64Ty, V8x8Ty));
  233   EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, V8x64Ty));
  236   EXPECT_FALSE(CastInst::isBitCastable(Int32PtrTy, Int32PtrAS1Ty));
  237   EXPECT_FALSE(CastInst::isBitCastable(Int32PtrAS1Ty, Int32PtrTy));
  238   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrTy, V2Int32PtrAS1Ty));
  239   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrAS1Ty, V2Int32PtrTy));
  240   EXPECT_TRUE(CastInst::isBitCastable(V2Int32PtrAS1Ty, V2Int64PtrAS1Ty));
  247   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrAS1Ty, V4Int64PtrAS1Ty));
  248   EXPECT_FALSE(CastInst::isBitCastable(V4Int64PtrAS1Ty, V2Int32PtrAS1Ty));
  249   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrAS1Ty, V4Int32PtrAS1Ty));
  250   EXPECT_FALSE(CastInst::isBitCastable(Int32PtrTy, V2Int32PtrTy));
  251   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrTy, Int32PtrTy));
  253   EXPECT_TRUE(CastInst::isBitCastable(Int32PtrTy, Int64PtrTy));
  254   EXPECT_FALSE(CastInst::isBitCastable(DoubleTy, FloatTy));
  255   EXPECT_FALSE(CastInst::isBitCastable(FloatTy, DoubleTy));
  256   EXPECT_TRUE(CastInst::isBitCastable(FloatTy, FloatTy));
  257   EXPECT_TRUE(CastInst::isBitCastable(FloatTy, FloatTy));
  258   EXPECT_TRUE(CastInst::isBitCastable(FloatTy, Int32Ty));
  259   EXPECT_TRUE(CastInst::isBitCastable(Int16Ty, HalfTy));
  260   EXPECT_TRUE(CastInst::isBitCastable(Int32Ty, FloatTy));
  261   EXPECT_TRUE(CastInst::isBitCastable(V2Int32Ty, Int64Ty));
  263   EXPECT_TRUE(CastInst::isBitCastable(V2Int32Ty, V4Int16Ty));
  264   EXPECT_FALSE(CastInst::isBitCastable(Int32Ty, Int64Ty));
  265   EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, Int32Ty));
  267   EXPECT_FALSE(CastInst::isBitCastable(V2Int32PtrTy, Int64Ty));
  268   EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, V2Int32PtrTy));
  269   EXPECT_TRUE(CastInst::isBitCastable(V2Int64PtrTy, V2Int32PtrTy));
  270   EXPECT_TRUE(CastInst::isBitCastable(V2Int32PtrTy, V2Int64PtrTy));
  271   EXPECT_FALSE(CastInst::isBitCastable(V2Int32Ty, V2Int64Ty));
  272   EXPECT_FALSE(CastInst::isBitCastable(V2Int64Ty, V2Int32Ty));