/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | BuildLibCalls.cpp | 1540 Type *VoidPtrTy = B.getPtrTy(); in emitMemCpyChk() local 1543 AttributeList::get(M->getContext(), AS), VoidPtrTy, in emitMemCpyChk() 1544 VoidPtrTy, VoidPtrTy, SizeTTy, SizeTTy); in emitMemCpyChk() 1554 Type *VoidPtrTy = B.getPtrTy(); in emitMemPCpy() local 1556 return emitLibCall(LibFunc_mempcpy, VoidPtrTy, in emitMemPCpy() 1557 {VoidPtrTy, VoidPtrTy, SizeTTy}, in emitMemPCpy() 1563 Type *VoidPtrTy = B.getPtrTy(); in emitMemChr() local 1566 return emitLibCall(LibFunc_memchr, VoidPtrTy, in emitMemChr() 1567 {VoidPtrTy, IntTy, SizeTTy}, in emitMemChr() 1573 Type *VoidPtrTy = B.getPtrTy(); in emitMemRChr() local [all …]
|
H A D | ValueMapper.cpp | 1089 PointerType *VoidPtrTy; in mapAppendingVariable() local 1094 VoidPtrTy = PointerType::getUnqual(GV.getContext()); in mapAppendingVariable() 1096 Type *Tys[3] = {ST.getElementType(0), ST.getElementType(1), VoidPtrTy}; in mapAppendingVariable() 1106 Constant *Null = Constant::getNullValue(VoidPtrTy); in mapAppendingVariable()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBlocks.cpp | 163 i8p = CGM.VoidPtrTy; in buildBlockDescriptor() 527 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 530 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 615 addBlockLayout(align, CGM.getPointerSize(), &CI, CGM.VoidPtrTy, in computeBlockInfo() 788 IsOpenCL ? CGM.getOpenCLRuntime().getGenericVoidPointerType() : VoidPtrTy; in EmitBlockLiteral() 1158 llvm::StructType::create("struct.__block_literal_generic", VoidPtrTy, in getGenericBlockLiteralType() 1159 IntTy, IntTy, VoidPtrTy, BlockDescPtrTy); in getGenericBlockLiteralType() 1206 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr() 1207 Args.add(RValue::get(BlockPtr), Ctx.VoidPtrTy); in EmitBlockCallExpr() 1212 Func = Builder.CreateAlignedLoad(VoidPtrTy, FuncPtr, getPointerAlign()); in EmitBlockCallExpr() [all …]
|
H A D | CGOpenMPRuntime.cpp | 1633 CGF.Builder.CreatePointerCast(VDAddr.emitRawPointer(CGF), CGM.VoidPtrTy), in emitThreadPrivateVarInit() 1660 /*Id=*/nullptr, CGM.getContext().VoidPtrTy, in emitThreadPrivateVarDefinition() 1665 CGM.getContext().VoidPtrTy, Args); in emitThreadPrivateVarDefinition() 1670 CtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidPtrTy, Fn, FI, in emitThreadPrivateVarDefinition() 1674 CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1681 CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1692 /*Id=*/nullptr, CGM.getContext().VoidPtrTy, in emitThreadPrivateVarDefinition() 1709 /*Volatile=*/false, CGM.getContext().VoidPtrTy, Dst.getLocation()); in emitThreadPrivateVarDefinition() 1721 llvm::Type *CopyCtorTyArgs[] = {CGM.VoidPtrTy, CGM.VoidPtrTy}; in emitThreadPrivateVarDefinition() 1722 auto *CopyCtorTy = llvm::FunctionType::get(CGM.VoidPtrTy, CopyCtorTyArgs, in emitThreadPrivateVarDefinition() [all …]
|
H A D | CGException.cpp | 989 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitCatchPadBlock() 996 llvm::Constant::getNullValue(CGF.VoidPtrTy)}); in emitCatchPadBlock() 1039 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitWasmCatchPadBlock() 1056 CGF.CGM.getIntrinsic(llvm::Intrinsic::eh_typeid_for, {CGF.VoidPtrTy}); in emitWasmCatchPadBlock() 1072 TypeInfo.RTTI = llvm::Constant::getNullValue(CGF.VoidPtrTy); in emitWasmCatchPadBlock() 1141 CGF.CGM.getIntrinsic(llvm::Intrinsic::eh_typeid_for, {CGF.VoidPtrTy}); in emitCatchDispatchBlock() 1737 QualType ArgTys[2] = {Context.UnsignedCharTy, Context.VoidPtrTy}; in Emit() 1928 D->getType() == getContext().VoidPtrTy) { in EmitCapturedLocals() 1951 Address(ParentFP, CGM.VoidPtrTy, getPointerAlign())); in EmitCapturedLocals() 2041 getContext().VoidPtrTy, ImplicitParamKind::Other)); in startOutlinedSEHHelper() [all …]
|
H A D | CGAtomic.cpp | 1061 getContext().VoidPtrTy); in EmitAtomicExpr() 1092 getContext().VoidPtrTy); in EmitAtomicExpr() 1095 getContext().VoidPtrTy); in EmitAtomicExpr() 1111 getContext().VoidPtrTy); in EmitAtomicExpr() 1126 getContext().VoidPtrTy); in EmitAtomicExpr() 1205 getContext().VoidPtrTy); in EmitAtomicExpr() 1465 Args.add(RValue::get(getAtomicPointer()), CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1466 Args.add(RValue::get(AddForLoaded), CGF.getContext().VoidPtrTy); in EmitAtomicLoadLibcall() 1664 Args.add(RValue::get(getAtomicPointer()), CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() 1665 Args.add(RValue::get(ExpectedAddr), CGF.getContext().VoidPtrTy); in EmitAtomicCompareExchangeLibcall() [all …]
|
H A D | CodeGenTypeCache.h | 57 llvm::PointerType *VoidPtrTy; member
|
H A D | CGObjC.cpp | 831 args.add(RValue::get(dest), Context.VoidPtrTy); in emitStructGetterCall() 832 args.add(RValue::get(src), Context.VoidPtrTy); in emitStructGetterCall() 1096 args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1102 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1105 args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1227 llvm::Value *self = Builder.CreateBitCast(LoadObjCSelf(), VoidPtrTy); in generateObjCGetterBody() 1335 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() 1343 args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy); in emitStructSetterCall() 1379 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicSetterCall() 1387 args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicSetterCall() [all …]
|
H A D | CGCoroutine.cpp | 424 ImplicitParamDecl AwaiterDecl(C, C.VoidPtrTy, ImplicitParamKind::Other); in generateAwaitSuspendWrapper() 425 ImplicitParamDecl FrameDecl(C, C.VoidPtrTy, ImplicitParamKind::Other); in generateAwaitSuspendWrapper() 828 auto *Phi = Builder.CreatePHI(VoidPtrTy, 2); in EmitCoroutineBody() 870 PromiseAddr.emitRawPointer(*this), VoidPtrTy, "", CoroId); in EmitCoroutineBody()
|
H A D | CGOpenMPRuntimeGPU.cpp | 1197 OutlinedFnArgs.push_back(llvm::ConstantPointerNull::get(CGM.VoidPtrTy)); in emitTeamsCall() 1231 llvm::ArrayType::get(CGM.VoidPtrTy, CapturedVars.size()), in emitParallelCall() 1242 PtrV = Bld.CreateIntToPtr(V, CGF.VoidPtrTy); in emitParallelCall() 1244 PtrV = Bld.CreatePointerBitCastOrAddrSpaceCast(V, CGF.VoidPtrTy); in emitParallelCall() 1246 Ctx.getPointerType(Ctx.VoidPtrTy)); in emitParallelCall() 1926 .getPointerType(CGF.getContext().VoidPtrTy) in createParallelDataSharingWrapper()
|
H A D | CGExpr.cpp | 3698 ImplicitParamDecl ArgAddr(C, C.VoidPtrTy, ImplicitParamKind::Other); in EmitCfiCheckStub() 3699 ImplicitParamDecl ArgCFICheckFailData(C, C.VoidPtrTy, in EmitCfiCheckStub() 3708 llvm::FunctionType::get(VoidTy, {Int64Ty, VoidPtrTy, VoidPtrTy}, false), in EmitCfiCheckStub() 3733 ImplicitParamDecl ArgData(getContext(), getContext().VoidPtrTy, in EmitCfiCheckFail() 3735 ImplicitParamDecl ArgAddr(getContext(), getContext().VoidPtrTy, in EmitCfiCheckFail() 3744 llvm::FunctionType::get(VoidTy, {VoidPtrTy, VoidPtrTy}, false), in EmitCfiCheckFail() 3761 CGM.getContext().VoidPtrTy, ArgData.getLocation()); in EmitCfiCheckFail() 3764 CGM.getContext().VoidPtrTy, ArgAddr.getLocation()); in EmitCfiCheckFail() 3772 llvm::StructType::get(VoidPtrTy, Int32Ty, Int32Ty); in EmitCfiCheckFail() 3774 llvm::StructType::get(Int8Ty, SourceLocationTy, VoidPtrTy); in EmitCfiCheckFail() [all …]
|
H A D | CGObjCRuntime.cpp | 340 lock = CGF.Builder.CreateBitCast(lock, CGF.VoidPtrTy); in EmitAtSynchronizedStmt()
|
H A D | CGDeclCXX.cpp | 271 {getContext().VoidPtrTy}, EPI); in createAtExitStub() 1160 ImplicitParamDecl Dst(getContext(), getContext().VoidPtrTy, in generateDestroyHelper()
|
H A D | ItaniumCXXABI.cpp | 1474 QualType DtorTy = Ctx.getFunctionType(Ctx.VoidTy, {Ctx.VoidPtrTy}, in emitThrow() 1716 CGF.VoidPtrTy, ThisAddr.getAlignment()); in emitExactDynamicCast() 1726 return llvm::PoisonValue::get(CGF.VoidPtrTy); in emitExactDynamicCast() 1846 QualType Q = Context.getAddrSpaceQualType(Context.VoidPtrTy, AS); in buildStructorSignature() 1882 QualType Q = Context.getAddrSpaceQualType(Context.VoidPtrTy, AS); in addImplicitStructorParams() 1931 QualType Q = getContext().getAddrSpaceQualType(getContext().VoidPtrTy, AS); in getImplicitConstructorArgs() 1951 QualType VTTTy = getContext().getPointerType(getContext().VoidPtrTy); in EmitDestructorCall() 2863 Context.getFunctionType(Context.VoidTy, {Context.VoidPtrTy}, EPI); in emitGlobalDtorWithCXAAtExit()
|
H A D | CGVTables.cpp | 264 ResultType = CGM.getContext().VoidPtrTy; in StartThunk() 379 ? CGM.getContext().VoidPtrTy in EmitCallAndReturnForThunk()
|
H A D | CGNonTrivialStruct.cpp | 311 QualType ParamTy = Ctx.getPointerType(Ctx.VoidPtrTy); in getFunctionInfo() 330 CGF->VoidPtrTy, Alignments[Ints], KnownNonNull)...}}; in getParamAddrs()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SjLjEHPrepare.cpp | 111 Type *VoidPtrTy = PointerType::getUnqual(M.getContext()); in doInitialization() local 116 doubleUnderJBufTy = ArrayType::get(VoidPtrTy, 5); in doInitialization() 117 FunctionContextTy = StructType::get(VoidPtrTy, // __prev in doInitialization() 120 VoidPtrTy, // __personality in doInitialization() 121 VoidPtrTy, // __lsda in doInitialization()
|
H A D | JMCInstrumenter.cpp | 130 PointerType *VoidPtrTy = PointerType::getUnqual(Ctx); in getCheckFunctionType() local 131 return FunctionType::get(VoidTy, VoidPtrTy, false); in getCheckFunctionType()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | HLSLExternalSemaSource.cpp | 108 QualType Ty = Record->getASTContext().VoidPtrTy; in addHandleMember() 177 Expr *Call = CallExpr::Create(AST, Fn, {RCExpr}, AST.VoidPtrTy, VK_PRValue, in addDefaultHandleConstructor() 189 if (Handle->getType().getCanonicalType() != AST.VoidPtrTy) { in addDefaultHandleConstructor() 226 assert(Handle->getType().getCanonicalType() != AST.VoidPtrTy && in addArraySubscriptOperator()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | SVals.cpp | 143 return QualType{Context.VoidPtrTy}; in VisitGotoLabel() 172 return QualType{Context.VoidPtrTy}; in VisitAllocaRegion()
|
/freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
H A D | Interpreter.cpp | 692 uint64_t PtrBits = Ctx.getTypeSize(Ctx.VoidPtrTy); in HandleIntegralOrEnumType() 702 TypeSourceInfo *TSI = Ctx.getTrivialTypeSourceInfo(Ctx.VoidPtrTy); in HandlePtrType() 748 Expr *TypeArg = CStyleCastPtrExpr(B->S, B->Ctx.VoidPtrTy, in transformForValuePrinting() 854 auto *ThisInterp = CStyleCastPtrExpr(S, Ctx.VoidPtrTy, (uintptr_t)this); in SynthesizeExpr() 857 auto *OutValue = CStyleCastPtrExpr(S, Ctx.VoidPtrTy, (uintptr_t)&LastValue); in SynthesizeExpr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | StdLibraryFunctionsChecker.cpp | 1668 const QualType VoidPtrTy = getPointerTy(VoidTy); // void * in initFunctionSummaries() local 1672 const QualType VoidPtrRestrictTy = getRestrictTy(VoidPtrTy); in initFunctionSummaries() 2082 "read", Signature(ArgTypes{IntTy, VoidPtrTy, SizeTy}, RetType{Ssize_tTy}), in initFunctionSummaries() 2950 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off_tTy}, in initFunctionSummaries() 2951 RetType{VoidPtrTy}), in initFunctionSummaries() 2963 Signature(ArgTypes{VoidPtrTy, SizeTy, IntTy, IntTy, IntTy, Off64_tTy}, in initFunctionSummaries() 2964 RetType{VoidPtrTy}), in initFunctionSummaries() 3313 Signature(ArgTypes{IntTy, VoidPtrTy, SizeTy, IntTy}, in initFunctionSummaries() 3630 ACtx.getFunctionType(/*ResultTy=*/VoidPtrTy, /*Args=*/VoidPtrTy, in initFunctionSummaries() 3712 Signature(ArgTypes{VoidPtrTy, IntTy, IntTy}, RetType{IntTy}), in initFunctionSummaries() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
H A D | AppleObjCTypeEncodingParser.cpp | 346 return ast_ctx.VoidPtrTy; in BuildType()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 2742 Context->getPointerType(Context->VoidPtrTy), in RewriteObjCArrayLiteralExpr() 2871 Context->getPointerType(Context->VoidPtrTy), in RewriteObjCDictionaryLiteralExpr() 4623 Context->VoidPtrTy, nullptr, in SynthesizeBlockCall() 4670 Context->VoidPtrTy, nullptr, in RewriteBlockDeclRefExpr() 4679 Context->VoidPtrTy, nullptr, in RewriteBlockDeclRefExpr() 4969 static_cast<unsigned>(Context->getTypeSize(Context->VoidPtrTy)); in SynthesizeByrefCopyDestroyHelper() 5187 QualType FType = Context->getFunctionNoProtoType(Context->VoidPtrTy); in SynthBlockInitFunctionDecl() 5279 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr() 5288 &Context->Idents.get(DescData), Context->VoidPtrTy, nullptr, SC_Static); in SynthBlockInitExpr() 5291 new (Context) DeclRefExpr(*Context, NewVD, false, Context->VoidPtrTy, in SynthBlockInitExpr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | InstrProfiling.cpp | 2006 auto *VoidPtrTy = PointerType::getUnqual(M.getContext()); in emitRegistration() local 2015 auto *RuntimeRegisterTy = FunctionType::get(VoidTy, VoidPtrTy, false); in emitRegistration() 2029 Type *ParamTypes[] = {VoidPtrTy, Int64Ty}; in emitRegistration()
|