Home
last modified time | relevance | path

Searched refs:SizeArg (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProBoundsConstantArrayIndexCheck.cpp110 const auto &SizeArg = TemplateArgs[1]; in check() local
111 if (SizeArg.getKind() != TemplateArgument::Integral) in check()
113 llvm::APInt ArraySize = SizeArg.getAsIntegral(); in check()
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroInstr.h205 enum { SizeArg, AlignArg, StorageArg, PrototypeArg, AllocArg, DeallocArg }; enumerator
211 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue(); in getStorageSize()
278 enum { SizeArg, AlignArg, StorageArg, AsyncFuncPtrArg }; enumerator
287 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue(); in getStorageSize()
601 enum { SizeArg, AlignArg }; enumerator
604 return getArgOperand(SizeArg); in getSize()
DCoroutines.cpp659 checkConstantInt(this, getArgOperand(SizeArg), in checkWellFormed()
686 checkConstantInt(this, getArgOperand(SizeArg), in checkWellFormed()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInstr.h205 enum { SizeArg, AlignArg, StorageArg, PrototypeArg, AllocArg, DeallocArg }; enumerator
211 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue(); in getStorageSize()
461 enum { SizeArg, AlignArg }; enumerator
464 return getArgOperand(SizeArg); in getSize()
DCoroutines.cpp628 checkConstantInt(this, getArgOperand(SizeArg), in checkWellFormed()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp251 Argument &SizeArg = *(++ArgI); in replaceImageAndSamplerUses() local
253 Modified |= replaceImageUses(Arg, ResourceID, SizeArg, FormatArg); in replaceImageAndSamplerUses()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp235 Argument &SizeArg = *(++ArgI); in replaceImageAndSamplerUses() local
237 Modified |= replaceImageUses(Arg, ResourceID, SizeArg, FormatArg); in replaceImageAndSamplerUses()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp251 Argument &SizeArg = *(++ArgI); in replaceImageAndSamplerUses() local
253 Modified |= replaceImageUses(Arg, ResourceID, SizeArg, FormatArg); in replaceImageAndSamplerUses()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp420 unsigned SizeArg; in wrapInvoke() local
422 std::tie(SizeArg, NEltArg) = FnAttrs.getAllocSizeArgs(); in wrapInvoke()
423 SizeArg += 1; in wrapInvoke()
426 FnAttrs.addAllocSizeAttr(SizeArg, NEltArg); in wrapInvoke()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp442 unsigned SizeArg; in wrapInvoke() local
444 std::tie(SizeArg, NEltArg) = FnAttrs.getAllocSizeArgs(); in wrapInvoke()
445 SizeArg += 1; in wrapInvoke()
448 FnAttrs.addAllocSizeAttr(SizeArg, NEltArg); in wrapInvoke()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp2250 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca() local
2253 {AddrArg, SizeArg}); in poisonAlloca()
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp726 Expr *SizeArg = TheCall->getArg(ObjectIndex); in checkFortifiedBuiltinMemoryFunction() local
727 if (!SizeArg->EvaluateAsInt(Result, getASTContext())) in checkFortifiedBuiltinMemoryFunction()
9799 const Expr *SizeArg = in CheckMemaccessSize() local
9809 if (isLiteralZero(SizeArg) && in CheckMemaccessSize()
9810 !isArgumentExpandedFromMacro(SM, CallLoc, SizeArg->getExprLoc())) { in CheckMemaccessSize()
9812 SourceLocation DiagLoc = SizeArg->getExprLoc(); in CheckMemaccessSize()
10085 const Expr *SizeArg = ignoreLiteralAdditions(Call->getArg(2), Context); in CheckStrlcpycatArguments() local
10088 if (CheckMemorySizeofForComparison(*this, SizeArg, FnName, in CheckStrlcpycatArguments()
10093 if (const Expr *Ex = getSizeOfExprArg(SizeArg)) in CheckStrlcpycatArguments()
10097 if (const CallExpr *SizeCall = dyn_cast<CallExpr>(SizeArg)) { in CheckStrlcpycatArguments()
/external/clang/lib/Sema/
DSemaChecking.cpp158 const Expr *SizeArg = TheCall->getArg(SizeIdx); in SemaBuiltinMemChkCall() local
164 if (!SizeArg->EvaluateAsInt(Size, S.Context) || in SemaBuiltinMemChkCall()
6331 const Expr *SizeArg = ignoreLiteralAdditions(Call->getArg(2), Context); in CheckStrlcpycatArguments() local
6334 if (CheckMemorySizeofForComparison(*this, SizeArg, FnName, in CheckStrlcpycatArguments()
6339 if (const Expr *Ex = getSizeOfExprArg(SizeArg)) in CheckStrlcpycatArguments()
6343 if (const CallExpr *SizeCall = dyn_cast<CallExpr>(SizeArg)) { in CheckStrlcpycatArguments()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp3242 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca() local
3245 {AddrArg, SizeArg}); in poisonAlloca()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp3375 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca() local
3378 {AddrArg, SizeArg}); in poisonAlloca()
/external/llvm-project/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp9559 ImplicitParamDecl SizeArg(C, /*DC=*/nullptr, Loc, /*Id=*/nullptr, Int64Ty, in emitUserDefinedMapper() local
9567 Args.push_back(&SizeArg); in emitUserDefinedMapper()
9585 MapperCGF.GetAddrOfLocalVar(&SizeArg), /*Volatile=*/false, in emitUserDefinedMapper()