Home
last modified time | relevance | path

Searched refs:getBitCast (Results 1 – 25 of 73) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp67 B.CreateCall(StatReport, ConstantExpr::getBitCast(InitAddr, Int8PtrTy)); in create()
89 ConstantExpr::getBitCast(NewModuleStatsGV, ModuleStatsGV->getType())); in finish()
102 B.CreateCall(StatInit, ConstantExpr::getBitCast(NewModuleStatsGV, Int8PtrTy)); in finish()
H A DEntryExitInstrumenter.cpp55 Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)), in insertCall()
H A DCtorUtils.cpp58 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()
H A DEvaluator.cpp194 MV->Val = ConstantExpr::getBitCast(V, MVType); in write()
492 InstResult = ConstantExpr::getBitCast(InstResult, II->getType()); in EvaluateBlock()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjCGNU.cpp1022 isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy); in GenerateConstantString()
1312 return llvm::ConstantExpr::getBitCast(GV, ProtocolPtrTy); in GenerateEmptyProtocol()
1438 return llvm::ConstantExpr::getBitCast(Val, Ty); in EnforceType()
1988 llvm::ConstantExpr::getBitCast(metaclass, IdTy)); in GenerateClass()
2460 auto *BVtable = llvm::ConstantExpr::getBitCast( in GetEHType()
2476 return llvm::ConstantExpr::getBitCast(TI, PtrToInt8Ty); in GetEHType()
2503 isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy); in GenerateConstantString()
3242 llvm::ConstantExpr::getBitCast( in GenerateProtocol()
3278 Categories.push_back(llvm::ConstantExpr::getBitCast( in GenerateProtocolHolderCategory()
3382 Categories.push_back(llvm::ConstantExpr::getBitCast( in GenerateCategory()
[all …]
H A DCGVTables.cpp469 Callee = llvm::ConstantExpr::getBitCast(Callee, Fn->getType()); in generateThunk()
542 llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType()); in maybeEmitThunk()
728 return builder.add(llvm::ConstantExpr::getBitCast(rtti, CGM.Int8PtrTy)); in addVTableComponent()
773 return llvm::ConstantExpr::getBitCast(fn, CGM.Int8PtrTy); in addVTableComponent()
812 return builder.add(llvm::ConstantExpr::getBitCast(fnPtr, CGM.Int8PtrTy)); in addVTableComponent()
H A DCGBlocks.cpp190 return llvm::ConstantExpr::getBitCast(desc, in buildBlockDescriptor()
229 elements.add(llvm::ConstantExpr::getBitCast( in buildBlockDescriptor()
269 return llvm::ConstantExpr::getBitCast(global, CGM.getBlockDescriptorType()); in buildBlockDescriptor()
839 isa = llvm::ConstantExpr::getBitCast(blockISA, VoidPtrTy); in EmitBlockLiteral()
1906 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateCopyHelperFunction()
2031 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateCopyHelperFunction()
2097 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateDestroyHelperFunction()
2154 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateDestroyHelperFunction()
2395 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefCopyHelper()
2452 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefDisposeHelper()
H A DAddress.h157 llvm::Constant *BitCast = llvm::ConstantExpr::getBitCast( in getElementBitCast()
H A DCodeGenModule.cpp2802 llvm::ConstantExpr::getBitCast(AnnoGV, GlobalsInt8PtrTy), in EmitAnnotateAttr()
2803 llvm::ConstantExpr::getBitCast(UnitGV, GlobalsInt8PtrTy), in EmitAnnotateAttr()
3045 llvm::Constant *Addr = llvm::ConstantExpr::getBitCast( in GetAddrOfMSGuidDecl()
3962 llvm::Constant *BC = llvm::ConstantExpr::getBitCast( in GetOrCreateLLVMFunction()
4027 return llvm::ConstantExpr::getBitCast(F, PTy); in GetOrCreateLLVMFunction()
4076 return llvm::ConstantExpr::getBitCast(llvm::NoCFIValue::get(F), in GetFunctionStart()
4259 llvm::ConstantExpr::getBitCast(GV, Entry->getType()); in GetOrCreateLLVMGlobal()
4438 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in CreateOrReplaceCXXRuntimeVariable()
5312 Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GA, in EmitAliasDefinition()
5588 Str = llvm::ConstantExpr::getBitCast(Str, Int8PtrTy); in GetAddrOfConstantCFString()
[all …]
H A DCGObjCMac.cpp2967 return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD), in GenerateProtocolRef()
3935 return llvm::ConstantExpr::getBitCast(GV, in emitMethodList()
4009 llvm::ConstantExpr::getBitCast(Fn, OldFn->getType())); in GenerateDirectMethod()
5219 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.SymtabPtrTy); in EmitModuleSymbols()
5230 llvm::ConstantExpr::getBitCast(GetClassName(II->getName()), in EmitClassRefFromId()
5269 llvm::ConstantExpr::getBitCast(GetMethodVarName(Sel), in EmitSelectorAddr()
6186 Symbols[i] = llvm::ConstantExpr::getBitCast(Container[i], in AddModuleClassList()
6626 llvm::ConstantExpr::getBitCast(GetOrEmitProtocol(PD), in GenerateProtocolRef()
7186 return llvm::ConstantExpr::getBitCast(GV, in EmitProtocolList()
7422 llvm::ConstantExpr::getBitCast(NewGV, GV->getType())); in GetClassGlobal()
[all …]
H A DCGCXX.cpp144 Aliasee = llvm::ConstantExpr::getBitCast(Ref, AliasType); in TryEmitBaseDestructorAsAlias()
H A DCGDeclCXX.cpp128 Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy); in EmitDeclDestroy()
134 Argument = llvm::ConstantExpr::getBitCast( in EmitDeclDestroy()
171 llvm::ConstantExpr::getBitCast(Addr, Int8PtrTy)}; in EmitInvariantStart()
H A DItaniumCXXABI.cpp1316 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy); in emitThrow()
2574 llvm::Value *args[] = {llvm::ConstantExpr::getBitCast( in emitGlobalDtorWithCXAAtExit()
2621 llvm::Constant *dtor = llvm::ConstantExpr::getBitCast(Dtor, dtorTy); in unregisterGlobalDtorsWithUnAtExit()
2685 llvm::ConstantExpr::getBitCast(Dtor, dtorTy)); in registerGlobalDtorsWithAtExit()
3195 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); in GetAddrOfExternalRTTIDescriptor()
3583 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3591 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3664 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo()
3726 TypeNameField = llvm::ConstantExpr::getBitCast(TypeName, CGM.Int8PtrTy); in BuildTypeInfo()
3847 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in BuildTypeInfo()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/MergeFunc/
H A D2013-01-10-MergeFuncAssert.ll2 ; This used to trigger a ConstantExpr::getBitCast assertion.
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceArguments.cpp115 F->replaceAllUsesWith(ConstantExpr::getBitCast(ClonedFunc, F->getType())); in extractArgumentsFromModule()
H A DReduceOperandsToArgs.cpp171 OldF->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, OldF->getType())); in substituteOperandWithArgument()
/llvm-project-15.0.7/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp202 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp472 Constant *BitcastNew = ConstantExpr::getBitCast(New, Old->getType()); in replaceDirectCallers()
773 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in writeAlias()
846 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in mergeTwoFunctions()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp303 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
1864 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1908 return llvm::ConstantExpr::getBitCast(NewNC, getType()); in handleOperandChangeImpl()
1976 return getBitCast(C, Ty, OnlyIfReduced); in getCast()
1984 return getBitCast(C, Ty); in getZExtOrBitCast()
1990 return getBitCast(C, Ty); in getSExtOrBitCast()
1996 return getBitCast(C, Ty); in getTruncOrBitCast()
2023 return getBitCast(S, Ty); in getPointerCast()
2034 return getBitCast(S, Ty); in getPointerBitCastOrAddrSpaceCast()
2199 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast() function in ConstantExpr
[all …]
H A DModule.cpp162 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction()
219 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp92 return ConstantExpr::getBitCast(C, DestTy); in foldConstVectorToAPInt()
125 C = ConstantExpr::getBitCast(C, SrcIVTy); in FoldBitCast()
144 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
155 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
161 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
185 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
195 C = ConstantExpr::getBitCast(C, SrcIVTy); in FoldBitCast()
227 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
254 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
264 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp687 return ConstantExpr::getBitCast(CE->getOperand(0), TargetType); in cloneConstantExprWithNewAddressSpace()
692 return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType); in cloneConstantExprWithNewAddressSpace()
712 return ConstantExpr::getBitCast(Src, TargetType); in cloneConstantExprWithNewAddressSpace()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp225 Constant *P6 = ConstantExpr::getBitCast(P4, FixedVectorType::get(Int16Ty, 2)); in TEST()
408 Constant *Aliasee = ConstantExpr::getBitCast(G, I16PTy); in TEST()
488 auto *C = ConstantExpr::getBitCast(G, PtrTy); in bitcastToGEPHelper()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp260 ConstantExpr::getBitCast(Main, PointerType::get(MainTy, 0)); in runOnModule()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp70 Value = ConstantExpr::getBitCast(Value, IntrTy); in replaceWithConstant()

123