Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A 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()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A 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()
671 enum { SizeArg, AlignArg }; enumerator
674 return getArgOperand(SizeArg); in getSize()
H A DCoroutines.cpp580 checkConstantInt(this, getArgOperand(SizeArg), in checkWellFormed()
610 checkConstantInt(this, getArgOperand(SizeArg), in checkWellFormed()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DR600OpenCLImageTypeLoweringPass.cpp236 Argument &SizeArg = *(++ArgI); in replaceImageAndSamplerUses() local
238 Modified |= replaceImageUses(Arg, ResourceID, SizeArg, FormatArg); in replaceImageAndSamplerUses()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp551 unsigned SizeArg; in wrapInvoke() local
553 std::tie(SizeArg, NEltArg) = FnAttrs.getAllocSizeArgs(); in wrapInvoke()
554 SizeArg += 1; in wrapInvoke()
557 FnAttrs.addAllocSizeAttr(SizeArg, NEltArg); in wrapInvoke()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp1044 Expr *SizeArg = TheCall->getArg(NewIndex); in checkFortifiedBuiltinMemoryFunction() local
1045 if (!SizeArg->EvaluateAsInt(Result, getASTContext())) in checkFortifiedBuiltinMemoryFunction()
11282 const Expr *SizeArg = in CheckMemaccessSize() local
11295 if (isLiteralZero(SizeArg) && in CheckMemaccessSize()
11296 !isArgumentExpandedFromMacro(SM, CallLoc, SizeArg->getExprLoc())) { in CheckMemaccessSize()
11298 SourceLocation DiagLoc = SizeArg->getExprLoc(); in CheckMemaccessSize()
11571 const Expr *SizeArg = ignoreLiteralAdditions(Call->getArg(2), Context); in CheckStrlcpycatArguments() local
11574 if (CheckMemorySizeofForComparison(*this, SizeArg, FnName, in CheckStrlcpycatArguments()
11579 if (const Expr *Ex = getSizeOfExprArg(SizeArg)) in CheckStrlcpycatArguments()
11583 if (const CallExpr *SizeCall = dyn_cast<CallExpr>(SizeArg)) { in CheckStrlcpycatArguments()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp3352 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca() local
3355 {AddrArg, SizeArg}); in poisonAlloca()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp9886 ImplicitParamDecl SizeArg(C, /*DC=*/nullptr, Loc, /*Id=*/nullptr, Int64Ty, in emitUserDefinedMapper() local
9896 Args.push_back(&SizeArg); in emitUserDefinedMapper()
9915 MapperCGF.GetAddrOfLocalVar(&SizeArg), /*Volatile=*/false, in emitUserDefinedMapper()