/external/clang/lib/CodeGen/ |
D | CGCUDANV.cpp | 33 llvm::PointerType *CharPtrTy, *VoidPtrTy, *VoidPtrPtrTy; member in __anon6c4b3c120111::CGNVCUDARuntime 95 VoidPtrTy = cast<llvm::PointerType>(Types.ConvertType(Ctx.VoidPtrTy)); in CGNVCUDARuntime() 96 VoidPtrPtrTy = VoidPtrTy->getPointerTo(); in CGNVCUDARuntime() 101 llvm::Type *Params[] = {VoidPtrTy, SizeTy, SizeTy}; in getSetupArgumentFn() 140 Args[0] = CGF.Builder.CreatePointerCast(ArgValues[I], VoidPtrTy); in emitDeviceStubBody() 194 VoidPtrTy, VoidPtrTy, VoidPtrTy, VoidPtrTy, IntTy->getPointerTo()}; in makeRegisterGlobalsFn() 205 llvm::Constant *NullPtr = llvm::ConstantPointerNull::get(VoidPtrTy); in makeRegisterGlobalsFn() 207 &GpuBinaryHandlePtr, Builder.CreateBitCast(Kernel, VoidPtrTy), in makeRegisterGlobalsFn() 230 Builder.CreateBitCast(Var, VoidPtrTy), in makeRegisterGlobalsFn() 263 llvm::FunctionType::get(VoidPtrPtrTy, VoidPtrTy, false), in makeModuleCtorFunction() [all …]
|
D | CGOpenMPRuntime.cpp | 1081 CGM.VoidPtrTy, CGM.SizeTy, in createRuntimeFunction() 1082 CGM.VoidPtrTy->getPointerTo()->getPointerTo()}; in createRuntimeFunction() 1084 llvm::FunctionType::get(CGM.VoidPtrTy, TypeParams, /*isVarArg*/ false); in createRuntimeFunction() 1115 llvm::FunctionType::get(CGM.VoidPtrTy, CGM.VoidPtrTy, in createRuntimeFunction() 1118 llvm::Type *KmpcCopyCtorTyArgs[] = {CGM.VoidPtrTy, CGM.VoidPtrTy}; in createRuntimeFunction() 1120 llvm::FunctionType::get(CGM.VoidPtrTy, KmpcCopyCtorTyArgs, in createRuntimeFunction() 1124 llvm::FunctionType::get(CGM.VoidTy, CGM.VoidPtrTy, /*isVarArg*/ false) in createRuntimeFunction() 1126 llvm::Type *FnTyArgs[] = {getIdentTyPointerTy(), CGM.VoidPtrTy, KmpcCtorTy, in createRuntimeFunction() 1256 llvm::FunctionType::get(CGM.VoidPtrTy, TypeParams, /*isVarArg=*/false); in createRuntimeFunction() 1264 CGM.VoidPtrTy}; in createRuntimeFunction() [all …]
|
D | CGBlocks.cpp | 87 i8p = CGM.getTypes().ConvertType(C.VoidPtrTy); in buildBlockDescriptor() 310 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 313 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 378 CGM.VoidPtrTy)); in computeBlockInfo() 700 blockFn = llvm::ConstantExpr::getBitCast(blockFn, VoidPtrTy); in EmitBlockLiteral() 709 isa = llvm::ConstantExpr::getBitCast(isa, VoidPtrTy); in EmitBlockLiteral() 822 byrefPointer = Builder.CreateBitCast(src.getPointer(), VoidPtrTy); in EmitBlockLiteral() 949 VoidPtrTy, IntTy, IntTy, VoidPtrTy, in getGenericBlockLiteralType() 974 BlockLiteral = Builder.CreateBitCast(BlockLiteral, VoidPtrTy); in EmitBlockCallExpr() 978 Args.add(RValue::get(BlockLiteral), getContext().VoidPtrTy); in EmitBlockCallExpr() [all …]
|
D | CodeGenTypeCache.h | 53 llvm::PointerType *VoidPtrTy; member
|
D | CGObjC.cpp | 581 Address dest = CGF.Builder.CreateBitCast(CGF.ReturnValue, CGF.VoidPtrTy); in emitStructGetterCall() 582 args.add(RValue::get(dest.getPointer()), Context.VoidPtrTy); in emitStructGetterCall() 584 src = CGF.Builder.CreateBitCast(src, CGF.VoidPtrTy); in emitStructGetterCall() 585 args.add(RValue::get(src.getPointer()), Context.VoidPtrTy); in emitStructGetterCall() 843 args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 850 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 853 args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 942 llvm::Value *self = Builder.CreateBitCast(LoadObjCSelf(), VoidPtrTy); in generateObjCGetterBody() 1049 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() 1057 args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() [all …]
|
D | CGAtomic.cpp | 657 CGF.getContext().VoidPtrTy); in AddDirectArgument() 837 getContext().VoidPtrTy); in EmitAtomicExpr() 864 getContext().VoidPtrTy); in EmitAtomicExpr() 979 getContext().VoidPtrTy); in EmitAtomicExpr() 1244 CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1246 CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1440 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1442 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1444 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1753 getContext().VoidPtrTy); in EmitAtomicStore() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCUDANV.cpp | 38 llvm::PointerType *CharPtrTy, *VoidPtrTy, *VoidPtrPtrTy; member in __anoncc61ed400111::CGNVCUDARuntime 182 VoidPtrTy = cast<llvm::PointerType>(Types.ConvertType(Ctx.VoidPtrTy)); in CGNVCUDARuntime() 183 VoidPtrPtrTy = VoidPtrTy->getPointerTo(); in CGNVCUDARuntime() 188 llvm::Type *Params[] = {VoidPtrTy, SizeTy, SizeTy}; in getSetupArgumentFn() 211 return llvm::FunctionType::get(VoidTy, VoidPtrTy, false); in getCallbackFnTy() 217 llvm::Type *Params[] = {RegisterGlobalsFnTy->getPointerTo(), VoidPtrTy, in getRegisterLinkedBinaryFnTy() 218 VoidPtrTy, CallbackFnTy->getPointerTo()}; in getRegisterLinkedBinaryFnTy() 261 VoidPtrTy, CharUnits::fromQuantity(16), "kernel_args", in emitDeviceStubBodyNew() 266 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, VoidPtrTy); in emitDeviceStubBodyNew() 306 CGF.CreateTempAlloca(VoidPtrTy, CGM.getPointerAlign(), "stream"); in emitDeviceStubBodyNew() [all …]
|
D | CGBlocks.cpp | 197 i8p = CGM.VoidPtrTy; in buildBlockDescriptor() 495 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 498 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 586 CGM.VoidPtrTy, variable->getType())); in computeBlockInfo() 799 IsOpenCL ? CGM.getOpenCLRuntime().getGenericVoidPointerType() : VoidPtrTy; in EmitBlockLiteral() 832 isa = llvm::ConstantExpr::getBitCast(blockISA, VoidPtrTy); in EmitBlockLiteral() 964 byrefPointer = Builder.CreateBitCast(src.getPointer(), VoidPtrTy); in EmitBlockLiteral() 1171 llvm::StructType::create("struct.__block_literal_generic", VoidPtrTy, in getGenericBlockLiteralType() 1172 IntTy, IntTy, VoidPtrTy, BlockDescPtrTy); in getGenericBlockLiteralType() 1216 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr() [all …]
|
D | CGOpenMPRuntimeGPU.cpp | 1103 CGM.getModule(), CGM.VoidPtrTy, /*isConstant=*/false, in emitNonSPMDKernel() 1105 llvm::UndefValue::get(CGM.VoidPtrTy), in emitNonSPMDKernel() 1235 CGM.getModule(), CGM.VoidPtrTy, /*isConstant=*/false, in emitSPMDKernel() 1237 llvm::UndefValue::get(CGM.VoidPtrTy), in emitSPMDKernel() 1867 .getPointerType(CGM.getContext().VoidPtrTy) in emitGenericVarsProlog() 2180 SharedArgs, Ctx.getPointerType(Ctx.getPointerType(Ctx.VoidPtrTy)) in emitNonSPMDParallelCall() 2186 PtrV = Bld.CreateIntToPtr(V, CGF.VoidPtrTy); in emitNonSPMDParallelCall() 2188 PtrV = Bld.CreatePointerBitCastOrAddrSpaceCast(V, CGF.VoidPtrTy); in emitNonSPMDParallelCall() 2190 Ctx.getPointerType(Ctx.VoidPtrTy)); in emitNonSPMDParallelCall() 2515 Bld.CreateConstGEP(SrcAddr, 1), CGF.VoidPtrTy); in shuffleAndStore() [all …]
|
D | CGOpenMPRuntime.cpp | 1742 OMPLoc, CGF.Builder.CreatePointerCast(VDAddr.getPointer(), CGM.VoidPtrTy), in emitThreadPrivateVarInit() 1769 /*Id=*/nullptr, CGM.getContext().VoidPtrTy, in emitThreadPrivateVarDefinition() 1774 CGM.getContext().VoidPtrTy, Args); in emitThreadPrivateVarDefinition() 1779 CtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidPtrTy, Fn, FI, in emitThreadPrivateVarDefinition() 1783 CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1791 CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1802 /*Id=*/nullptr, CGM.getContext().VoidPtrTy, in emitThreadPrivateVarDefinition() 1819 /*Volatile=*/false, CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1830 llvm::Type *CopyCtorTyArgs[] = {CGM.VoidPtrTy, CGM.VoidPtrTy}; in emitThreadPrivateVarDefinition() 1831 auto *CopyCtorTy = llvm::FunctionType::get(CGM.VoidPtrTy, CopyCtorTyArgs, in emitThreadPrivateVarDefinition() [all …]
|
D | CodeGenTypeCache.h | 53 llvm::PointerType *VoidPtrTy; member
|
D | CGObjC.cpp | 826 Address dest = CGF.Builder.CreateBitCast(CGF.ReturnValue, CGF.VoidPtrTy); in emitStructGetterCall() 827 args.add(RValue::get(dest.getPointer()), Context.VoidPtrTy); in emitStructGetterCall() 829 src = CGF.Builder.CreateBitCast(src, CGF.VoidPtrTy); in emitStructGetterCall() 830 args.add(RValue::get(src.getPointer()), Context.VoidPtrTy); in emitStructGetterCall() 1089 args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1096 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1099 args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1191 llvm::Value *self = Builder.CreateBitCast(LoadObjCSelf(), VoidPtrTy); in generateObjCGetterBody() 1299 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() 1308 args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() [all …]
|
D | CGAtomic.cpp | 786 CGF.getContext().VoidPtrTy); in AddDirectArgument() 1047 getContext().VoidPtrTy); in EmitAtomicExpr() 1080 getContext().VoidPtrTy); in EmitAtomicExpr() 1232 getContext().VoidPtrTy); in EmitAtomicExpr() 1508 CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1510 CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1705 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1707 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1709 CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 2018 getContext().VoidPtrTy); in EmitAtomicStore() [all …]
|
D | CGException.cpp | 934 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitCatchPadBlock() 941 llvm::Constant::getNullValue(CGF.VoidPtrTy)}); in emitCatchPadBlock() 984 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitWasmCatchPadBlock() 1016 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitWasmCatchPadBlock() 1641 QualType ArgTys[2] = {Context.UnsignedCharTy, Context.VoidPtrTy}; in Emit() 1837 D->getType() == getContext().VoidPtrTy) { in EmitCapturedLocals() 1929 getContext().VoidPtrTy, ImplicitParamDecl::Other)); in startOutlinedSEHHelper() 1938 &getContext().Idents.get("frame_pointer"), getContext().VoidPtrTy, in startOutlinedSEHHelper() 2025 llvm::Type *PtrsTy = llvm::StructType::get(RecordTy, CGM.VoidPtrTy); in EmitSEHExceptionCodeSave()
|
/external/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 86 Type *VoidPtrTy = Type::getInt8PtrTy(M.getContext()); in doInitialization() local 89 doubleUnderJBufTy = ArrayType::get(VoidPtrTy, 5); in doInitialization() 90 FunctionContextTy = StructType::get(VoidPtrTy, // __prev in doInitialization() 93 VoidPtrTy, // __personality in doInitialization() 94 VoidPtrTy, // __lsda in doInitialization()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 86 Type *VoidPtrTy = Type::getInt8PtrTy(M.getContext()); in doInitialization() local 89 doubleUnderJBufTy = ArrayType::get(VoidPtrTy, 5); in doInitialization() 90 FunctionContextTy = StructType::get(VoidPtrTy, // __prev in doInitialization() 93 VoidPtrTy, // __personality in doInitialization() 94 VoidPtrTy, // __lsda in doInitialization()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 93 Type *VoidPtrTy = Type::getInt8PtrTy(M.getContext()); in doInitialization() local 98 doubleUnderJBufTy = ArrayType::get(VoidPtrTy, 5); in doInitialization() 99 FunctionContextTy = StructType::get(VoidPtrTy, // __prev in doInitialization() 102 VoidPtrTy, // __personality in doInitialization() 103 VoidPtrTy, // __lsda in doInitialization()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 505 auto *VoidPtrTy = Type::getInt8PtrTy(M->getContext()); in emitRegistration() local 514 auto *RuntimeRegisterTy = FunctionType::get(VoidTy, VoidPtrTy, false); in emitRegistration() 522 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration() 525 Type *ParamTypes[] = {VoidPtrTy, Int64Ty}; in emitRegistration() 531 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), in emitRegistration()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | BasicValueFactory.h | 154 return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); 158 return getValue(X, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); in getIntWithPtrWidth()
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | BasicValueFactory.h | 217 return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); 221 return getValue(X, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); in getIntWithPtrWidth()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 1009 auto *VoidPtrTy = Type::getInt8PtrTy(M->getContext()); in emitRegistration() local 1018 auto *RuntimeRegisterTy = FunctionType::get(VoidTy, VoidPtrTy, false); in emitRegistration() 1026 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration() 1029 Type *ParamTypes[] = {VoidPtrTy, Int64Ty}; in emitRegistration() 1035 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), in emitRegistration()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 948 auto *VoidPtrTy = Type::getInt8PtrTy(M->getContext()); in emitRegistration() local 957 auto *RuntimeRegisterTy = FunctionType::get(VoidTy, VoidPtrTy, false); in emitRegistration() 965 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration() 968 Type *ParamTypes[] = {VoidPtrTy, Int64Ty}; in emitRegistration() 974 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), in emitRegistration()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | StdLibraryFunctionsChecker.cpp | 933 const QualType VoidPtrTy = getPointerTy(VoidTy); // void * in initFunctionSummaries() local 937 const QualType VoidPtrRestrictTy = getRestrictTy(VoidPtrTy); in initFunctionSummaries() 1276 "read", Signature(ArgTypes{IntTy, VoidPtrTy, SizeTy}, RetType{Ssize_tTy}), in initFunctionSummaries() 1795 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off_tTy}, in initFunctionSummaries() 1796 RetType{VoidPtrTy}), in initFunctionSummaries() 1807 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off64_tTy}, in initFunctionSummaries() 1808 RetType{VoidPtrTy}), in initFunctionSummaries() 2095 Signature(ArgTypes{IntTy, VoidPtrTy, SizeTy, IntTy}, in initFunctionSummaries() 2369 ACtx.getFunctionType(/*ResultTy=*/VoidPtrTy, /*Args=*/VoidPtrTy, in initFunctionSummaries() 2460 Signature(ArgTypes{VoidPtrTy, ConstCharPtrTy}, RetType{IntTy}), in initFunctionSummaries()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | SimpleConstraintManager.cpp | 36 T = SVB.getContext().VoidPtrTy; in assume()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 962 PointerType *VoidPtrTy; in mapAppendingVariable() local 967 VoidPtrTy = Type::getInt8Ty(GV.getContext())->getPointerTo(); in mapAppendingVariable() 969 Type *Tys[3] = {ST.getElementType(0), ST.getElementType(1), VoidPtrTy}; in mapAppendingVariable() 979 Constant *Null = Constant::getNullValue(VoidPtrTy); in mapAppendingVariable()
|