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

References

include/llvm/Analysis/TargetFolder.h
  193     return CreateCast(Instruction::BitCast, C, DestTy);
include/llvm/Analysis/TargetTransformInfoImpl.h
   56     case Instruction::BitCast:
include/llvm/CodeGen/BasicTTIImpl.h
  700       if (Opcode == Instruction::BitCast || Opcode == Instruction::Trunc)
  737       if (Opcode == Instruction::BitCast)
  802     if (Opcode == Instruction::BitCast)
include/llvm/IR/ConstantFolder.h
  208     return CreateCast(Instruction::BitCast, C, DestTy);
include/llvm/IR/IRBuilder.h
 1981     return CreateCast(Instruction::BitCast, V, DestTy, Name);
include/llvm/IR/Instructions.h
 5184     return I->getOpcode() == BitCast;
include/llvm/IR/NoFolder.h
  272     return CreateCast(Instruction::BitCast, C, DestTy);
include/llvm/IR/Operator.h
  583     : public ConcreteOperator<Operator, Instruction::BitCast> {
include/llvm/IR/PatternMatch.h
 1288 inline CastClass_match<OpTy, Instruction::BitCast> m_BitCast(const OpTy &Op) {
 1289   return CastClass_match<OpTy, Instruction::BitCast>(Op);
lib/Analysis/BasicAliasAnalysis.cpp
  486     if (Op->getOpcode() == Instruction::BitCast ||
lib/Analysis/CFLGraph.h
  527       case Instruction::BitCast:
lib/Analysis/CaptureTracking.cpp
  341     case Instruction::BitCast:
lib/Analysis/ConstantFolding.cpp
   96   assert(CastInst::castIsValid(Instruction::BitCast, C, DestTy) &&
  303       CE->getOpcode() == Instruction::BitCast)
  334       Instruction::CastOps Cast = Instruction::BitCast;
  647   if (CE->getOpcode() == Instruction::BitCast)
 1363   case Instruction::BitCast:
lib/Analysis/GlobalsModRef.cpp
  365     } else if (Operator::getOpcode(I) == Instruction::BitCast) {
lib/Analysis/InlineCost.cpp
 1667     } else if (Operator::getOpcode(V) == Instruction::BitCast) {
lib/Analysis/InstructionSimplify.cpp
 4297                                          DstIntPtrTy) == Instruction::BitCast)
 4303   if (CastOpc == Instruction::BitCast)
lib/Analysis/LazyValueInfo.cpp
 1032   case Instruction::BitCast:
lib/Analysis/ObjCARCInstKind.cpp
  242     case Instruction::BitCast:
lib/Analysis/ScalarEvolution.cpp
 6471   case Instruction::BitCast:
lib/Analysis/ScalarEvolutionExpander.cpp
  111   assert((Op == Instruction::BitCast ||
  119   if (Op == Instruction::BitCast) {
  951   case Instruction::BitCast:
lib/Analysis/TargetTransformInfo.cpp
 1224   case Instruction::BitCast:
lib/Analysis/ValueTracking.cpp
 1147   case Instruction::BitCast: {
 3721     } else if (Operator::getOpcode(V) == Instruction::BitCast ||
 4327   case Instruction::BitCast:
lib/AsmParser/LLLexer.cpp
  863   INSTKEYWORD(bitcast,     BitCast);
lib/Bitcode/Reader/BitcodeReader.cpp
 1052   case bitc::CAST_BITCAST : return Instruction::BitCast;
lib/Bitcode/Writer/BitcodeWriter.cpp
  515   case Instruction::BitCast : return bitc::CAST_BITCAST;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1318       if (CE->getOpcode() == Instruction::BitCast)
 2223   case Instruction::BitCast:
 2719     if (CE->getOpcode() == Instruction::BitCast)
lib/CodeGen/CodeGenPrepare.cpp
 3539   case Instruction::BitCast:
 4060   case Instruction::BitCast:
lib/CodeGen/InterleavedLoadCombinePass.cpp
  972       case Instruction::BitCast:
lib/CodeGen/MachineFunction.cpp
 1046     A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A),
 1052     B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B),
lib/CodeGen/SelectionDAG/FastISel.cpp
  356          !(I->getOpcode() == Instruction::BitCast ||
 1880   case Instruction::BitCast:
lib/CodeGen/StackProtector.cpp
  187     case Instruction::BitCast:
lib/CodeGen/TargetLoweringBase.cpp
 1628   case BitCast:        return ISD::BITCAST;
lib/ExecutionEngine/ExecutionEngine.cpp
  752     case Instruction::BitCast: {
lib/ExecutionEngine/Interpreter/Execution.cpp
 2046   case Instruction::BitCast:
lib/IR/AutoUpgrade.cpp
 3767   if (Opc != Instruction::BitCast)
 3788   if (Opc != Instruction::BitCast)
 3883           !CastInst::castIsValid(Instruction::BitCast, CI,
 3897           if (!CastInst::castIsValid(Instruction::BitCast, Arg,
lib/IR/ConstantFold.cpp
  726   case Instruction::BitCast:
 1639     case Instruction::BitCast:
 2082       if (CE2->getOpcode() == Instruction::BitCast &&
lib/IR/ConstantRange.cpp
  637   case Instruction::BitCast:
lib/IR/Constants.cpp
 1258   case Instruction::BitCast:
 1593   case Instruction::BitCast:
 1650     (SrcBits == DstBits ? Instruction::BitCast :
 1806   assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) &&
 1813   return getFoldedCast(Instruction::BitCast, C, DstTy, OnlyIfReduced);
 3001   case Instruction::BitCast:
lib/IR/Globals.cpp
  457     case Instruction::BitCast:
lib/IR/Instruction.cpp
  351   case BitCast:       return "bitcast";
lib/IR/Instructions.cpp
 2458     case Instruction::BitCast:
 2466   if (getOpcode() != Instruction::BitCast)
 2507     case Instruction::BitCast:
 2591   bool IsFirstBitcast  = (firstOp == Instruction::BitCast);
 2592   bool IsSecondBitcast = (secondOp == Instruction::BitCast);
 2649         return Instruction::BitCast;
 2656         return Instruction::BitCast;
 2666         return Instruction::BitCast;
 2682         return Instruction::BitCast;
 2690       return Instruction::BitCast;
 2763   case BitCast:       return new BitCastInst       (S, Ty, Name, InsertBefore);
 2785   case BitCast:       return new BitCastInst       (S, Ty, Name, InsertAtEnd);
 2795     return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
 2803     return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
 2811     return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
 2819     return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
 2827     return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
 2835     return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
 2884   return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
 2897   return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
 2908   return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
 2919     (SrcBits == DstBits ? Instruction::BitCast :
 2933     (SrcBits == DstBits ? Instruction::BitCast :
 2947     (SrcBits == DstBits ? Instruction::BitCast :
 2960     (SrcBits == DstBits ? Instruction::BitCast :
 3093     return BitCast;
 3120         return BitCast;                             // Same size, No-op cast
 3130       return BitCast;                             // Same size, no-op cast
 3148         return BitCast;                             // same size, no-op cast
 3153       return BitCast;                             // same size, no-op cast
 3159     return BitCast;
 3164       return BitCast;                               // ptr -> ptr
 3172       return BitCast;                               // 64-bit vector to MMX
 3248   case Instruction::BitCast: {
 3435 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) {
 3441 ) : CastInst(Ty, BitCast, S, Name, InsertAtEnd) {
lib/IR/Value.cpp
  495     } else if (Operator::getOpcode(V) == Instruction::BitCast) {
  588     } else if (Operator::getOpcode(V) == Instruction::BitCast ||
lib/IR/Verifier.cpp
 1912   if (CE->getOpcode() == Instruction::BitCast)
 1913     Assert(CastInst::castIsValid(Instruction::BitCast, CE->getOperand(0),
 2770       CastInst::castIsValid(Instruction::BitCast, I.getOperand(0), I.getType()),
lib/Target/AArch64/AArch64FastISel.cpp
  605   case Instruction::BitCast:
  944   case Instruction::BitCast:
 5180   case Instruction::BitCast:
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  130   case Instruction::BitCast:
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  340   case Instruction::BitCast:
  456     case Instruction::BitCast:
lib/Target/ARM/ARMCodeGenPrepare.cpp
  820     case Instruction::BitCast:
lib/Target/ARM/ARMFastISel.cpp
  739     case Instruction::BitCast:
lib/Target/Hexagon/HexagonISelLowering.cpp
 1714       Operator::getOpcode(V) == Instruction::BitCast)
lib/Target/Mips/MipsFastISel.cpp
  483   case Instruction::BitCast:
  565   case Instruction::BitCast:
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 2051   case Instruction::BitCast:
lib/Target/PowerPC/PPCFastISel.cpp
  329     case Instruction::BitCast:
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  171   case Instruction::BitCast:
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  245   case Instruction::BitCast: {
 1378   case Instruction::BitCast:
lib/Target/X86/X86FastISel.cpp
  855   case Instruction::BitCast:
 1028   case Instruction::BitCast:
 3654   case Instruction::BitCast: {
lib/Target/X86/X86TargetTransformInfo.cpp
 3037   case Instruction::BitCast:
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  118     case Instruction::BitCast:
lib/Transforms/IPO/FunctionAttrs.cpp
  467     case Instruction::BitCast:
  883       case Instruction::BitCast:
  996     case Instruction::BitCast:
lib/Transforms/IPO/GlobalOpt.cpp
  308       } else if ((CE->getOpcode() == Instruction::BitCast &&
 1802     if (Operator::getOpcode(U) == Instruction::BitCast) {
lib/Transforms/IPO/LowerTypeTests.cpp
  715     if (Op->getOpcode() == Instruction::BitCast)
lib/Transforms/IPO/PartialInlining.cpp
  854     case Instruction::BitCast:
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3211         return CastInst::Create(Instruction::BitCast, Result, CI.getType());
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1963   case Instruction::BitCast:
 2398         return CastInst::Create(Instruction::BitCast, Elem, DestTy);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
   43     if (CE->getOpcode() == Instruction::BitCast ||
lib/Transforms/InstCombine/InstCombineSelect.cpp
  318       if (TI->getOpcode() != Instruction::BitCast &&
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  374   case Instruction::BitCast:
 1395   case Instruction::BitCast: {
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  433       if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
lib/Transforms/InstCombine/InstructionCombining.cpp
 2288       case Instruction::BitCast:
lib/Transforms/Scalar/GVN.cpp
  529     case Instruction::BitCast:
lib/Transforms/Scalar/GVNSink.cpp
  476     case Instruction::BitCast:
lib/Transforms/Scalar/InferAddressSpaces.cpp
  229   case Instruction::BitCast:
  251   case Instruction::BitCast:
  470   case Instruction::BitCast:
  518   if (CE->getOpcode() == Instruction::BitCast) {
  991               NewV = CastInst::Create(Instruction::BitCast, NewV,
lib/Transforms/Scalar/NewGVN.cpp
 1991     case Instruction::BitCast:
lib/Transforms/Scalar/SCCP.cpp
 1517       case Instruction::BitCast:
lib/Transforms/Scalar/SROA.cpp
 1644     if (Operator::getOpcode(Ptr) == Instruction::BitCast) {
lib/Transforms/Scalar/Scalarizer.cpp
  691              VI->getOpcode() == Instruction::BitCast)
lib/Transforms/Scalar/SpeculativeExecution.cpp
  228     case Instruction::BitCast:
lib/Transforms/Scalar/TailRecursionElimination.cpp
  155       case Instruction::BitCast:
lib/Transforms/Utils/Evaluator.cpp
   86   case Instruction::BitCast:
  166     } else if (CE->getOpcode() == Instruction::BitCast &&
  239     case Instruction::BitCast:
  276   if (!CE || CE->getOpcode() != Instruction::BitCast ||
  313   if (!RV || !CE || CE->getOpcode() != Instruction::BitCast)
  365         if (CE->getOpcode() == Instruction::BitCast) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 4240   case Instruction::BitCast: {
 6269   case Instruction::BitCast: {
 6846     case Instruction::BitCast:
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2490     case Instruction::BitCast: {
 3046     case Instruction::BitCast: {
 3871     case Instruction::BitCast: {
tools/clang/lib/CodeGen/CGCall.cpp
 4242       if (CE->getOpcode() == llvm::Instruction::BitCast)
tools/clang/lib/CodeGen/CGException.cpp
  292       if (CE->getOpcode() != llvm::Instruction::BitCast) return false;
tools/clang/lib/CodeGen/CodeGenModule.cpp
  243         assert(CE->getOpcode() == llvm::Instruction::BitCast ||
 4272       if (bitcast->getOpcode() == llvm::Instruction::BitCast)
tools/lldb/source/Expression/IRInterpreter.cpp
  264         case Instruction::BitCast:
  467       case Instruction::BitCast:
  520       case Instruction::BitCast:
  876     case Instruction::BitCast:
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  459       case llvm::Instruction::BitCast:
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  652       } else if (nsstring_expr->getOpcode() == Instruction::BitCast) {
  960       ocr_initializer_expr->getOpcode() != Instruction::BitCast)
 1195     case Instruction::BitCast:
 1485     if (CE->getOpcode() != Instruction::BitCast)
 1561         case Instruction::BitCast: {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  182         llvm::Instruction::BitCast, func, new_func_ptr_type);
unittests/Analysis/SparsePropagation.cpp
  519       ConstantExpr::getCast(Instruction::BitCast, P, Builder.getInt8PtrTy());
unittests/IR/ConstantsTest.cpp
  475   ASSERT_EQ(cast<ConstantExpr>(C)->getOpcode(), Instruction::BitCast);
unittests/IR/InstructionsTest.cpp
  275   EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast,
  278   EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast,
  436             CastInst::BitCast);
  444             CastInst::BitCast);
  459             CastInst::BitCast);
  496                                            CastInst::BitCast,