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

Declarations

include/llvm/IR/Constants.h
  968   static Constant *getBitCast(Constant *C, Type *Ty,

References

include/llvm/ProfileData/InstrProfData.inc
   79                 ConstantExpr::getBitCast(CounterPtr, \
lib/Analysis/ConstantFolding.cpp
   83       return ConstantExpr::getBitCast(C, DestTy);
  119         C = ConstantExpr::getBitCast(C, SrcIVTy);
  138     return ConstantExpr::getBitCast(C, DestTy);
  149     return ConstantExpr::getBitCast(C, DestTy);
  155     return ConstantExpr::getBitCast(C, DestTy);
  179     return ConstantExpr::getBitCast(C, DestTy);
  189     C = ConstantExpr::getBitCast(C, SrcIVTy);
  220           return ConstantExpr::getBitCast(C, DestTy);
  247       return ConstantExpr::getBitCast(C, DestTy);
  257       return ConstantExpr::getBitCast(C, DestTy);
  680         Res = ConstantExpr::getBitCast(Res, Ty);
lib/Analysis/InlineCost.cpp
  634         return ConstantExpr::getBitCast(COps[0], I.getType());
lib/Analysis/InstructionSimplify.cpp
 4894       Int32Ty, ConstantExpr::getBitCast(Ptr, Int32PtrTy),
 4926   return ConstantExpr::getBitCast(LoadedLHSPtr, Int8PtrTy);
lib/Analysis/ScalarEvolution.cpp
 8081           C = ConstantExpr::getBitCast(C, DestPtrTy);
 8094             C = ConstantExpr::getBitCast(C, DestPtrTy);
lib/Analysis/ValueTracking.cpp
 3229     return Ty ? isBytewiseValue(ConstantExpr::getBitCast(CFP, Ty), DL)
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 7209     LoadInput = ConstantExpr::getBitCast(const_cast<Constant *>(LoadInput),
lib/CodeGen/ShadowStackGCLowering.cpp
  112     Metadata.push_back(ConstantExpr::getBitCast(C, VoidPtr));
lib/IR/ConstantFold.cpp
   64     C = ConstantExpr::getBitCast(C, DstEltTy);
  156       return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy);
 2085         Constant *Inverse = ConstantExpr::getBitCast(C1, CE2Op0->getType());
lib/IR/Constants.cpp
 1594     return getBitCast(C, Ty, OnlyIfReduced);
 1602     return getBitCast(C, Ty);
 1608     return getBitCast(C, Ty);
 1614     return getBitCast(C, Ty);
 1630   return getBitCast(S, Ty);
 1641   return getBitCast(S, Ty);
 1832     C = getBitCast(C, MidTy);
lib/IR/Core.cpp
 1717   return wrap(ConstantExpr::getBitCast(unwrap<Constant>(ConstantVal),
lib/IR/Module.cpp
  161     return {Ty, ConstantExpr::getBitCast(F, PTy)};
  218     return ConstantExpr::getBitCast(GV, PTy);
lib/LTO/LTO.cpp
  975       OldGV->replaceAllUsesWith(ConstantExpr::getBitCast(GV, OldGV->getType()));
lib/Linker/IRMover.cpp
  926   Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType()));
  936         std::make_pair(DstGV, ConstantExpr::getBitCast(NG, DstGV->getType())));
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
  266             ConstantExpr::getBitCast(Main, PointerType::get(MainTy, 0));
lib/Target/XCore/XCoreISelLowering.cpp
  298     Constant *GA = ConstantExpr::getBitCast(const_cast<GlobalValue*>(GV), Ty);
lib/Transforms/CFGuard/CFGuard.cpp
  196     GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy);
lib/Transforms/Coroutines/CoroElide.cpp
   59     Value = ConstantExpr::getBitCast(Value, IntrTy);
lib/Transforms/Coroutines/CoroInstr.h
  190                   ConstantExpr::getBitCast(getFunction(), Int8PtrTy));
lib/Transforms/IPO/DeadArgumentElimination.cpp
  248   Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType()));
lib/Transforms/IPO/FunctionImport.cpp
 1057   GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType()));
lib/Transforms/IPO/GlobalOpt.cpp
  879     RepValue = ConstantExpr::getBitCast(RepValue, GV->getValueType());
 1585         SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType());
 2791     J->replaceAllUsesWith(ConstantExpr::getBitCast(Aliasee, J->getType()));
lib/Transforms/IPO/LowerTypeTests.cpp
  375           ConstantExpr::getBitCast(P.second, P.first->getType()));
  968     C = ConstantExpr::getBitCast(C, Int8PtrTy);
 1109   CombinedGlobalAddr = ConstantExpr::getBitCast(CombinedGlobalAddr, Int8PtrTy);
 1510       Constant *CombinedGlobalElemPtr = ConstantExpr::getBitCast(
lib/Transforms/IPO/MergeFunctions.cpp
  446   Constant *BitcastNew = ConstantExpr::getBitCast(New, Old->getType());
  766   Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType());
  837         Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType());
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  161     F.replaceAllUsesWith(ConstantExpr::getBitCast(NewF, F.getType()));
lib/Transforms/IPO/WholeProgramDevirt.cpp
  875       VCallSite.CS.setCalledFunction(ConstantExpr::getBitCast(
 1314   Constant *C = ConstantExpr::getBitCast(M->Bits->GV, Int8PtrTy);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 4797         NestF : ConstantExpr::getBitCast(NestF,
 4836   Constant *NewCallee = ConstantExpr::getBitCast(NestF, CalleeTy);
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1934       return collectInsertionElements(ConstantExpr::getBitCast(C, VecEltTy),
 1940       C = ConstantExpr::getBitCast(C, IntegerType::get(V->getContext(),
 2094     Value *CastedC = ConstantExpr::getBitCast(C, DestTy);
 2235         NewV = ConstantExpr::getBitCast(C, DestTy);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  813         GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
  865             ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT)));
  895           ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT));
lib/Transforms/Instrumentation/InstrProfiling.cpp
  813           ConstantExpr::getBitCast(ValuesVar, Type::getInt8PtrTy(Ctx));
  827                                ? ConstantExpr::getBitCast(Fn, Int8PtrTy)
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  826         {ConstantExpr::getBitCast(FuncInfo.FuncNameVar, I8PtrTy),
  864           {ConstantExpr::getBitCast(FuncInfo.FuncNameVar, I8PtrTy),
 1355       {ConstantExpr::getBitCast(FuncNameVar, I8PtrTy),
lib/Transforms/Scalar/InferAddressSpaces.cpp
  515     return ConstantExpr::getBitCast(CE->getOperand(0), TargetType);
  520       return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1027     Value *PatternPtr = ConstantExpr::getBitCast(GV, Int8PtrTy);
lib/Transforms/Utils/CtorUtils.cpp
   57       V = ConstantExpr::getBitCast(V, GCL->getType());
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   51     Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)),
lib/Transforms/Utils/ModuleUtils.cpp
   87     Constant *C = ConstantExpr::getBitCast(V, Int8PtrTy);
lib/Transforms/Utils/SanitizerStats.cpp
   68   B.CreateCall(StatReport, ConstantExpr::getBitCast(InitAddr, Int8PtrTy));
   90       ConstantExpr::getBitCast(NewModuleStatsGV, ModuleStatsGV->getType()));
  103   B.CreateCall(StatInit, ConstantExpr::getBitCast(NewModuleStatsGV, Int8PtrTy));
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1014       LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo());
 1019       RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo());
lib/Transforms/Utils/VNCoercion.cpp
  332       ConstantExpr::getBitCast(Src, Type::getInt8PtrTy(Src->getContext(), AS));
  337   Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS));
  508       ConstantExpr::getBitCast(Src, Type::getInt8PtrTy(Src->getContext(), AS));
  513   Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS));
tools/clang/include/clang/CodeGen/ConstantInitBuilder.h
  209     add(llvm::ConstantExpr::getBitCast(value, type));
tools/clang/lib/CodeGen/Address.h
   88     return ConstantAddress(llvm::ConstantExpr::getBitCast(getPointer(), ty),
tools/clang/lib/CodeGen/CGBlocks.cpp
  205       return llvm::ConstantExpr::getBitCast(desc,
  243   elements.add(llvm::ConstantExpr::getBitCast(
  283   return llvm::ConstantExpr::getBitCast(global, CGM.getBlockDescriptorType());
  960     isa = llvm::ConstantExpr::getBitCast(blockISA, VoidPtrTy);
 2000     return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy);
 2129   return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy);
 2195     return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy);
 2259   return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy);
 2508   return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy);
 2571   return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 3519       return RValue::get(llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy));
tools/clang/lib/CodeGen/CGCXX.cpp
  143     Aliasee = llvm::ConstantExpr::getBitCast(Ref, AliasType);
tools/clang/lib/CodeGen/CGDecl.cpp
  355     llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  126         Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy);
  132       Argument = llvm::ConstantExpr::getBitCast(
  168                            llvm::ConstantExpr::getBitCast(Addr, Int8PtrTy)};
tools/clang/lib/CodeGen/CGException.cpp
  252   return llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(Fn.getCallee()),
 1726         llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy);
 1792         llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy);
 2026       llvm::ConstantExpr::getBitCast(FilterFunc, Int8PtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp
  433       Object = Address(llvm::ConstantExpr::getBitCast(Var,
  491     Object = Address(llvm::ConstantExpr::getBitCast(
 2413       V = llvm::ConstantExpr::getBitCast(V,
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1558       location = llvm::ConstantExpr::getBitCast(location,
 1793     C = llvm::ConstantExpr::getBitCast(C, charPtrTy);
 1896       TypeInfo = llvm::ConstantExpr::getBitCast(TypeInfo, StdTypeInfoPtrTy);
 1953   Ptr = llvm::ConstantExpr::getBitCast(Ptr,
tools/clang/lib/CodeGen/CGObjC.cpp
   50   return llvm::ConstantExpr::getBitCast(C, ConvertType(E->getType()));
 3562   HelperFn = llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy);
 3667   HelperFn = llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1015       isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy);
 1108     llvm::Constant *ObjCStr = llvm::ConstantExpr::getBitCast(ObjCStrGV, IdTy);
 1191           llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI),
 1299     return llvm::ConstantExpr::getBitCast(GV, ProtocolPtrTy);
 1318           llvm::ConstantExpr::getBitCast(Protocol, ProtocolPtrTy), RefName);
 1373           llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI),
 1411       OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV,
 1422     return llvm::ConstantExpr::getBitCast(Val, Ty);
 1778         classFields.add(llvm::ConstantExpr::getBitCast(SuperClass, PtrTy));
 1912           llvm::ConstantExpr::getBitCast(GenerateProtocolRef(I),
 1931     classRefSymbol->setInitializer(llvm::ConstantExpr::getBitCast(classStruct, IdTy));
 1952           llvm::ConstantExpr::getBitCast(classStruct, IdTy));
 1960             llvm::ConstantExpr::getBitCast(classStruct, Placeholder->getType()));
 1966           llvm::ConstantExpr::getBitCast(metaclass, IdTy));
 2401     return llvm::ConstantExpr::getBitCast(IDEHType, PtrToInt8Ty);
 2416     return llvm::ConstantExpr::getBitCast(typeinfo, PtrToInt8Ty);
 2431   auto *BVtable = llvm::ConstantExpr::getBitCast(
 2447   return llvm::ConstantExpr::getBitCast(TI, PtrToInt8Ty);
 2474     isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy);
 2483   ObjCStr = llvm::ConstantExpr::getBitCast(ObjCStr, PtrToInt8Ty);
 2975     ClassRef->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(Class,
 3045   MethodList = llvm::ConstantExpr::getBitCast(MethodList, PtrToInt8Ty);
 3133     llvm::ConstantExpr::getBitCast(
 3169   Categories.push_back(llvm::ConstantExpr::getBitCast(
 3270   Categories.push_back(llvm::ConstantExpr::getBitCast(
 3589         llvm::ConstantExpr::getBitCast(ClassStruct, IdTy));
 3595         llvm::ConstantExpr::getBitCast(MetaClassStruct, IdTy));
 3601   ClassStruct = llvm::ConstantExpr::getBitCast(ClassStruct, PtrToInt8Ty);
 3651     statics = llvm::ConstantExpr::getBitCast(statics, PtrTy);
 3716     selPtr = llvm::ConstantExpr::getBitCast(selPtr, SelectorTy);
 3837          TheClass = llvm::ConstantExpr::getBitCast(TheClass, PtrTy);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1959   auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo());
 1975   auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo());
 2991   return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD),
 3210   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListPtrTy);
 3314   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.PropertyListPtrTy);
 3335   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.Int8PtrPtrTy);
 3832   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListPtrTy);
 3951     return llvm::ConstantExpr::getBitCast(GV,
 3968   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListPtrTy);
 5081   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.SymtabPtrTy);
 5092     llvm::ConstantExpr::getBitCast(GetClassName(II->getName()),
 5130       llvm::ConstantExpr::getBitCast(GetMethodVarName(Sel),
 6060     Symbols[i] = llvm::ConstantExpr::getBitCast(Container[i],
 6512     llvm::ConstantExpr::getBitCast(GetOrEmitProtocol(PD),
 6717   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListnfABIPtrTy);
 6859   return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListnfABIPtrTy);
 7021     return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListnfABIPtrTy);
 7039   return llvm::ConstantExpr::getBitCast(GV,
 7275           llvm::ConstantExpr::getBitCast(NewGV, GV->getType()));
 7492       llvm::ConstantExpr::getBitCast(GetMethodVarName(Sel),
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1295           llvm::ConstantExpr::getBitCast(GA, OrigAddr->getType()));
 1581           llvm::ConstantExpr::getBitCast(DefaultOpenMPPSource, CGM.Int8PtrTy);
 2930       ID = llvm::ConstantExpr::getBitCast(Fn, CGM.Int8PtrTy);
 2969       ID = llvm::ConstantExpr::getBitCast(Fn, CGM.Int8PtrTy);
 4032   llvm::Constant *Data[] = {llvm::ConstantExpr::getBitCast(ID, CGM.VoidPtrTy),
 4033                             llvm::ConstantExpr::getBitCast(Str, CGM.Int8PtrTy),
 6521     OutlinedFnID = llvm::ConstantExpr::getBitCast(OutlinedFn, CGM.Int8PtrTy);
tools/clang/lib/CodeGen/CGVTT.cpp
   86      Init = llvm::ConstantExpr::getBitCast(Init, Int8PtrTy);
tools/clang/lib/CodeGen/CGVTables.cpp
  462     Callee = llvm::ConstantExpr::getBitCast(Callee, Fn->getType());
  535           llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType());
  640     return builder.add(llvm::ConstantExpr::getBitCast(rtti, CGM.Int8PtrTy));
  685       return llvm::ConstantExpr::getBitCast(fn, CGM.Int8PtrTy);
  718     fnPtr = llvm::ConstantExpr::getBitCast(fnPtr, CGM.Int8PtrTy);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1168     ctor.add(llvm::ConstantExpr::getBitCast(I.Initializer, CtorPFTy));
 1170       ctor.add(llvm::ConstantExpr::getBitCast(I.AssociatedData, VoidPtrTy));
 2215     llvm::ConstantExpr::getBitCast(GV, Int8PtrTy),
 2216     llvm::ConstantExpr::getBitCast(AnnoGV, Int8PtrTy),
 2217     llvm::ConstantExpr::getBitCast(UnitGV, Int8PtrTy),
 2394     auto Ptr = llvm::ConstantExpr::getBitCast(Entry, DeclTy->getPointerTo(AS));
 3158       return llvm::ConstantExpr::getBitCast(Entry, Ty->getPointerTo());
 3198     llvm::Constant *BC = llvm::ConstantExpr::getBitCast(
 3263   return llvm::ConstantExpr::getBitCast(F, PTy);
 3456       return llvm::ConstantExpr::getBitCast(Entry, Ty);
 3474           llvm::ConstantExpr::getBitCast(GV, Entry->getType());
 3641       llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
 3970         llvm::ConstantExpr::getBitCast(GV, Entry->getType());
 4493     Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GA,
 4566     Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GIF,
 4762     Str = llvm::ConstantExpr::getBitCast(Str, Int8PtrTy);
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  902   llvm::Value *Args[] = {llvm::ConstantExpr::getBitCast(FuncNameVar, I8PtrTy),
  934         llvm::ConstantExpr::getBitCast(FuncNameVar, Builder.getInt8PtrTy()),
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1342         llvm::ConstantExpr::getBitCast(NamePtr, llvm::Type::getInt8PtrTy(Ctx)));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1270       Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy);
 2401   llvm::Value *args[] = {llvm::ConstantExpr::getBitCast(
 2403                          llvm::ConstantExpr::getBitCast(addr, AddrInt8PtrTy),
 2900   return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy);
 3269   VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy);
 3342     return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy);
 3402     TypeNameField = llvm::ConstantExpr::getBitCast(TypeName, CGM.Int8PtrTy);
 3507       llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
 3546   return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2808   FirstField = llvm::ConstantExpr::getBitCast(FirstField, CGM.VoidPtrTy);
 3817     return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy);
 3843   return llvm::ConstantExpr::getBitCast(Var, CGM.Int8PtrTy);
 4037     CopyCtor = llvm::ConstantExpr::getBitCast(CopyCtor, CGM.Int8PtrTy);
 4247         CleanupFn = llvm::ConstantExpr::getBitCast(
 4254       llvm::ConstantExpr::getBitCast(CTA, CGM.Int8PtrTy));
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  493   Constant *bytes_arg = cstr ? ConstantExpr::getBitCast(cstr, i8_ptr_ty)
  873   Constant *omvn_pointer = ConstantExpr::getBitCast(
 1024   Constant *ocn_pointer = ConstantExpr::getBitCast(
unittests/IR/ConstantsTest.cpp
  213   Constant *P6 = ConstantExpr::getBitCast(P4, VectorType::get(Int16Ty, 2));
  405   Constant *Aliasee = ConstantExpr::getBitCast(G, I16PTy);
  474   auto *C = ConstantExpr::getBitCast(G, PtrTy);