Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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 DCtorUtils.cpp58 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()
H A DEntryExitInstrumenter.cpp71 Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)), in insertCall()
H A DEvaluator.cpp194 MV->Val = ConstantExpr::getBitCast(V, MVType); in write()
492 InstResult = ConstantExpr::getBitCast(InstResult, II->getType()); in EvaluateBlock()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGObjCGNU.cpp1022 isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy); in GenerateConstantString()
1115 llvm::Constant *ObjCStr = llvm::ConstantExpr::getBitCast(ObjCStrGV, IdTy); in GenerateConstantString()
1201 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI), in GenerateCategoryProtocolList()
1312 return llvm::ConstantExpr::getBitCast(GV, ProtocolPtrTy); in GenerateEmptyProtocol()
1331 llvm::ConstantExpr::getBitCast(Protocol, ProtocolPtrTy), RefName); in GenerateProtocolRef()
1389 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI), in GenerateProtocolRef()
1427 OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV, in GenerateProtocolRef()
1438 return llvm::ConstantExpr::getBitCast(Val, Ty); in EnforceType()
1798 classFields.add(llvm::ConstantExpr::getBitCast(SuperClass, PtrTy)); in GenerateClass()
1933 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(I), in GenerateClass()
[all …]
H A DCGVTables.cpp469 Callee = llvm::ConstantExpr::getBitCast(Callee, Fn->getType()); in generateThunk()
542 llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType()); in maybeEmitThunk()
742 return builder.add(llvm::ConstantExpr::getBitCast(rtti, CGM.Int8PtrTy)); in addVTableComponent()
787 return llvm::ConstantExpr::getBitCast(fn, CGM.Int8PtrTy); in addVTableComponent()
826 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()
835 isa = llvm::ConstantExpr::getBitCast(blockISA, VoidPtrTy); in EmitBlockLiteral()
1902 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateCopyHelperFunction()
2027 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateCopyHelperFunction()
2093 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateDestroyHelperFunction()
2150 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateDestroyHelperFunction()
2391 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefCopyHelper()
2448 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefDisposeHelper()
H A DAddress.h157 llvm::Constant *BitCast = llvm::ConstantExpr::getBitCast( in getElementBitCast()
H A DCodeGenModule.cpp1673 ctor.add(llvm::ConstantExpr::getBitCast(I.Initializer, CtorPFTy)); in EmitCtorList()
1675 ctor.add(llvm::ConstantExpr::getBitCast(I.AssociatedData, VoidPtrTy)); in EmitCtorList()
2906 auto *Bitcasted = llvm::ConstantExpr::getBitCast(GV, GlobalsInt8PtrTy); in EmitAnnotationArgs()
2931 llvm::ConstantExpr::getBitCast(GVInGlobalsAS, GlobalsInt8PtrTy), in EmitAnnotateAttr()
2932 llvm::ConstantExpr::getBitCast(AnnoGV, ConstGlobalsPtrTy), in EmitAnnotateAttr()
2933 llvm::ConstantExpr::getBitCast(UnitGV, ConstGlobalsPtrTy), in EmitAnnotateAttr()
3173 llvm::Constant *Addr = llvm::ConstantExpr::getBitCast( in GetAddrOfMSGuidDecl()
3247 auto Ptr = llvm::ConstantExpr::getBitCast(Entry, DeclTy->getPointerTo(AS)); in GetWeakRefReference()
4074 return llvm::ConstantExpr::getBitCast( in GetOrCreateLLVMFunction()
4115 llvm::Constant *BC = llvm::ConstantExpr::getBitCast( in GetOrCreateLLVMFunction()
[all …]
H A DCGObjCMac.cpp1961 auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo()); in getNSConstantStringClassRef()
1977 auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo()); in getNSConstantStringClassRef()
2972 return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD), in GenerateProtocolRef()
3193 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
3301 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.PropertyListPtrTy); in EmitPropertyList()
3322 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.Int8PtrPtrTy); in EmitProtocolMethodTypes()
3821 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListPtrTy); in EmitIvarList()
3940 return llvm::ConstantExpr::getBitCast(GV, in emitMethodList()
3958 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListPtrTy); in emitMethodList()
4014 llvm::ConstantExpr::getBitCast(Fn, OldFn->getType())); in GenerateDirectMethod()
[all …]
H A DCGCXX.cpp144 Aliasee = llvm::ConstantExpr::getBitCast(Ref, AliasType); in TryEmitBaseDestructorAsAlias()
H A DCGDeclCXX.cpp129 Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy); in EmitDeclDestroy()
135 Argument = llvm::ConstantExpr::getBitCast( in EmitDeclDestroy()
172 llvm::ConstantExpr::getBitCast(Addr, Int8PtrTy)}; in EmitInvariantStart()
H A DItaniumCXXABI.cpp1304 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy); in emitThrow()
2599 llvm::Value *args[] = {llvm::ConstantExpr::getBitCast( in emitGlobalDtorWithCXAAtExit()
2601 llvm::ConstantExpr::getBitCast(addr, AddrInt8PtrTy), in emitGlobalDtorWithCXAAtExit()
2646 llvm::Constant *dtor = llvm::ConstantExpr::getBitCast(Dtor, dtorTy); in unregisterGlobalDtorsWithUnAtExit()
2710 llvm::ConstantExpr::getBitCast(Dtor, dtorTy)); in registerGlobalDtorsWithAtExit()
3222 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); in GetAddrOfExternalRTTIDescriptor()
3610 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3618 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3691 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo()
3753 TypeNameField = llvm::ConstantExpr::getBitCast(TypeName, CGM.Int8PtrTy); in BuildTypeInfo()
[all …]
H A DCGException.cpp270 return llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(Fn.getCallee()), in getOpaquePersonalityFn()
1823 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in recoverAddrOfEscapedLocal()
1889 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
1926 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
2190 llvm::ConstantExpr::getBitCast(FilterFunc, Int8PtrTy); in EnterSEHTryStmt()
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceArguments.cpp116 F->replaceAllUsesWith(ConstantExpr::getBitCast(ClonedFunc, F->getType())); in extractArgumentsFromModule()
H A DReduceOperandsToArgs.cpp171 OldF->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, OldF->getType())); in substituteOperandWithArgument()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp202 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp472 Constant *BitcastNew = ConstantExpr::getBitCast(New, Old->getType()); in replaceDirectCallers()
772 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in writeAlias()
856 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in mergeTwoFunctions()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstants.cpp302 Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy); in isElementWiseEqual()
303 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
1881 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1894 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1938 return llvm::ConstantExpr::getBitCast(NewNC, getType()); in handleOperandChangeImpl()
2006 return getBitCast(C, Ty, OnlyIfReduced); in getCast()
2014 return getBitCast(C, Ty); in getZExtOrBitCast()
2020 return getBitCast(C, Ty); in getSExtOrBitCast()
2026 return getBitCast(C, Ty); in getTruncOrBitCast()
2053 return getBitCast(S, Ty); in getPointerCast()
[all …]
H A DModule.cpp162 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction()
219 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp688 return ConstantExpr::getBitCast(CE->getOperand(0), TargetType); in cloneConstantExprWithNewAddressSpace()
693 return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType); in cloneConstantExprWithNewAddressSpace()
713 return ConstantExpr::getBitCast(Src, TargetType); in cloneConstantExprWithNewAddressSpace()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp260 ConstantExpr::getBitCast(Main, PointerType::get(MainTy, 0)); in runOnModule()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp71 Value = ConstantExpr::getBitCast(Value, IntrTy); in replaceWithConstant()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp118 Metadata.push_back(ConstantExpr::getBitCast(C, VoidPtr)); in GetFrameMap()

123