Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DAddress.h87 ConstantAddress getBitCast(llvm::Type *ty) const { in getBitCast() function
88 return ConstantAddress(llvm::ConstantExpr::getBitCast(getPointer(), ty), in getBitCast()
93 return getBitCast(ty->getPointerTo(getAddressSpace())); in getElementBitCast()
H A DCGObjCGNU.cpp1019 isa = llvm::ConstantExpr::getBitCast(isa, PtrToIdTy); in GenerateConstantString()
1112 llvm::Constant *ObjCStr = llvm::ConstantExpr::getBitCast(ObjCStrGV, IdTy); in GenerateConstantString()
1198 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI), in GenerateCategoryProtocolList()
1307 return llvm::ConstantExpr::getBitCast(GV, ProtocolPtrTy); in GenerateEmptyProtocol()
1326 llvm::ConstantExpr::getBitCast(Protocol, ProtocolPtrTy), RefName); in GenerateProtocolRef()
1384 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(PI), in GenerateProtocolRef()
1422 OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV, in GenerateProtocolRef()
1433 return llvm::ConstantExpr::getBitCast(Val, Ty); in EnforceType()
1792 classFields.add(llvm::ConstantExpr::getBitCast(SuperClass, PtrTy)); in GenerateClass()
1927 llvm::ConstantExpr::getBitCast(GenerateProtocolRef(I), in GenerateClass()
[all …]
H A DCGVTables.cpp467 Callee = llvm::ConstantExpr::getBitCast(Callee, Fn->getType()); in generateThunk()
540 llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType()); in maybeEmitThunk()
726 return builder.add(llvm::ConstantExpr::getBitCast(rtti, CGM.Int8PtrTy)); in addVTableComponent()
771 return llvm::ConstantExpr::getBitCast(fn, CGM.Int8PtrTy); in addVTableComponent()
810 return builder.add(llvm::ConstantExpr::getBitCast(fnPtr, CGM.Int8PtrTy)); in addVTableComponent()
H A DCGBlocks.cpp206 return llvm::ConstantExpr::getBitCast(desc, in buildBlockDescriptor()
244 elements.add(llvm::ConstantExpr::getBitCast( in buildBlockDescriptor()
284 return llvm::ConstantExpr::getBitCast(global, CGM.getBlockDescriptorType()); in buildBlockDescriptor()
832 isa = llvm::ConstantExpr::getBitCast(blockISA, VoidPtrTy); in EmitBlockLiteral()
1926 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateCopyHelperFunction()
2057 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateCopyHelperFunction()
2123 return llvm::ConstantExpr::getBitCast(Func, VoidPtrTy); in GenerateDestroyHelperFunction()
2189 return llvm::ConstantExpr::getBitCast(Fn, VoidPtrTy); in GenerateDestroyHelperFunction()
2438 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefCopyHelper()
2501 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefDisposeHelper()
H A DCodeGenModule.cpp1432 ctor.add(llvm::ConstantExpr::getBitCast(I.Initializer, CtorPFTy)); in EmitCtorList()
1434 ctor.add(llvm::ConstantExpr::getBitCast(I.AssociatedData, VoidPtrTy)); in EmitCtorList()
2528 auto *Bitcasted = llvm::ConstantExpr::getBitCast(GV, Int8PtrTy); in EmitAnnotationArgs()
2551 llvm::ConstantExpr::getBitCast(ASZeroGV, Int8PtrTy), in EmitAnnotateAttr()
2552 llvm::ConstantExpr::getBitCast(AnnoGV, Int8PtrTy), in EmitAnnotateAttr()
2553 llvm::ConstantExpr::getBitCast(UnitGV, Int8PtrTy), in EmitAnnotateAttr()
2772 Addr = llvm::ConstantExpr::getBitCast( in GetAddrOfMSGuidDecl()
2816 auto Ptr = llvm::ConstantExpr::getBitCast(Entry, DeclTy->getPointerTo(AS)); in GetWeakRefReference()
3538 return llvm::ConstantExpr::getBitCast(Entry, Ty->getPointerTo()); in GetOrCreateLLVMFunction()
3578 llvm::Constant *BC = llvm::ConstantExpr::getBitCast( in GetOrCreateLLVMFunction()
[all …]
H A DCGDeclCXX.cpp128 Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy); in EmitDeclDestroy()
134 Argument = llvm::ConstantExpr::getBitCast( in EmitDeclDestroy()
170 llvm::ConstantExpr::getBitCast(Addr, Int8PtrTy)}; in EmitInvariantStart()
H A DCGObjCMac.cpp1985 auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo()); in getNSConstantStringClassRef()
2001 auto V = llvm::ConstantExpr::getBitCast(GV, CGM.IntTy->getPointerTo()); in getNSConstantStringClassRef()
3032 return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD), in GenerateProtocolRef()
3253 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
3361 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.PropertyListPtrTy); in EmitPropertyList()
3382 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.Int8PtrPtrTy); in EmitProtocolMethodTypes()
3881 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListPtrTy); in EmitIvarList()
4000 return llvm::ConstantExpr::getBitCast(GV, in emitMethodList()
4018 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListPtrTy); in emitMethodList()
4074 llvm::ConstantExpr::getBitCast(Fn, OldFn->getType())); in GenerateDirectMethod()
[all …]
H A DItaniumCXXABI.cpp1340 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy); in emitThrow()
2596 llvm::Value *args[] = {llvm::ConstantExpr::getBitCast( in emitGlobalDtorWithCXAAtExit()
2598 llvm::ConstantExpr::getBitCast(addr, AddrInt8PtrTy), in emitGlobalDtorWithCXAAtExit()
2654 llvm::Constant *dtor = llvm::ConstantExpr::getBitCast(Dtor, dtorTy); in unregisterGlobalDtorsWithUnAtExit()
2719 llvm::ConstantExpr::getBitCast(Dtor, dtorTy)); in registerGlobalDtorsWithAtExit()
3193 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); in GetAddrOfExternalRTTIDescriptor()
3580 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3588 VTable = llvm::ConstantExpr::getBitCast(VTable, CGM.Int8PtrTy); in BuildVTablePointer()
3661 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo()
3721 TypeNameField = llvm::ConstantExpr::getBitCast(TypeName, CGM.Int8PtrTy); in BuildTypeInfo()
[all …]
H A DCGCXX.cpp144 Aliasee = llvm::ConstantExpr::getBitCast(Ref, AliasType); in TryEmitBaseDestructorAsAlias()
H A DCGException.cpp270 return llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(Fn.getCallee()), in getOpaquePersonalityFn()
1820 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in recoverAddrOfEscapedLocal()
1886 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
1923 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
2186 llvm::ConstantExpr::getBitCast(FilterFunc, Int8PtrTy); in EnterSEHTryStmt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp68 B.CreateCall(StatReport, ConstantExpr::getBitCast(InitAddr, Int8PtrTy)); in create()
90 ConstantExpr::getBitCast(NewModuleStatsGV, ModuleStatsGV->getType())); in finish()
103 B.CreateCall(StatInit, ConstantExpr::getBitCast(NewModuleStatsGV, Int8PtrTy)); in finish()
H A DVNCoercion.cpp410 Src = ConstantExpr::getBitCast(Src, in analyzeLoadFromClobberingMemInst()
417 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in analyzeLoadFromClobberingMemInst()
591 Src = ConstantExpr::getBitCast(Src, in getMemInstValueForLoadHelper()
598 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in getMemInstValueForLoadHelper()
H A DCtorUtils.cpp57 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()
H A DEntryExitInstrumenter.cpp55 Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)), in insertCall()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/
H A DReduceArguments.cpp97 F->replaceAllUsesWith(ConstantExpr::getBitCast(ClonedFunc, F->getType())); in extractArgumentsFromModule()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp92 return ConstantExpr::getBitCast(C, DestTy); in foldConstVectorToAPInt()
128 C = ConstantExpr::getBitCast(C, SrcIVTy); in FoldBitCast()
147 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
158 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
164 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
188 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
198 C = ConstantExpr::getBitCast(C, SrcIVTy); in FoldBitCast()
230 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
257 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
267 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp196 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp465 Constant *BitcastNew = ConstantExpr::getBitCast(New, Old->getType()); in replaceDirectCallers()
765 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in writeAlias()
836 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType()); in mergeTwoFunctions()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstants.cpp301 Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy); in isElementWiseEqual()
302 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
1925 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1938 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
2009 return getBitCast(C, Ty, OnlyIfReduced); in getCast()
2017 return getBitCast(C, Ty); in getZExtOrBitCast()
2023 return getBitCast(C, Ty); in getSExtOrBitCast()
2029 return getBitCast(C, Ty); in getTruncOrBitCast()
2045 return getBitCast(S, Ty); in getPointerCast()
2056 return getBitCast(S, Ty); in getPointerBitCastOrAddrSpaceCast()
[all …]
H A DModule.cpp161 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction()
218 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp646 return ConstantExpr::getBitCast(CE->getOperand(0), TargetType); in cloneConstantExprWithNewAddressSpace()
651 return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType); in cloneConstantExprWithNewAddressSpace()
671 return ConstantExpr::getBitCast(Src, TargetType); in cloneConstantExprWithNewAddressSpace()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp269 ConstantExpr::getBitCast(Main, PointerType::get(MainTy, 0)); in runOnModule()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp117 Metadata.push_back(ConstantExpr::getBitCast(C, VoidPtr)); in GetFrameMap()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp63 Value = ConstantExpr::getBitCast(Value, IntrTy); in replaceWithConstant()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/profile/
H A DInstrProfData.inc77 ConstantExpr::getBitCast(NamePtr, llvm::Type::getInt8PtrTy(Ctx)))
79 ConstantExpr::getBitCast(CounterPtr, \
157 NamePtr, llvm::ConstantExpr::getBitCast(NamePtr, \

123