Home
last modified time | relevance | path

Searched refs:ArgTypes (Results 1 – 25 of 74) sorted by relevance

123

/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dinjected-class-name.cpp49 template<typename R, typename ...ArgTypes>
50 struct X<R(ArgTypes...)> {
51 X<R(ArgTypes...)> f();
54 template<typename R, typename ...ArgTypes>
55 X<R(ArgTypes...)> X<R(ArgTypes...)>::f() { return *this; } in f()
61 template<typename ...ArgTypes> int g(ArgTypes...);
65 template<typename R, typename ...ArgTypes>
66 struct X1<R(ArgTypes...)> {
67 unsigned_c<sizeof(1 + g(ArgTypes()...))> f();
70 template<typename R, typename ...ArgTypes>
[all …]
/external/libchrome/base/task_scheduler/
Dtask_traits_details.h18 template <class CheckedType, class FirstArgType, class... ArgTypes>
19 struct HasArgOfType<CheckedType, FirstArgType, ArgTypes...>
22 HasArgOfType<CheckedType, ArgTypes...>>::type {};
52 class... ArgTypes,
60 const ArgTypes&... args) {
61 static_assert(!HasArgOfType<FirstArgType, ArgTypes...>::value,
68 template <class GetterType, class FirstArgType, class... ArgTypes>
73 const ArgTypes&... args) {
98 template <class GetterType, class... ArgTypes>
101 const ArgTypes&... args) {
Dtask_traits.h148 template <class... ArgTypes,
150 decltype(ValidTrait(std::declval<ArgTypes>()))...>>
151 constexpr TaskTraits(ArgTypes... args) in TaskTraits()
153 internal::HasArgOfType<TaskPriority, ArgTypes...>::value), in TaskTraits()
158 internal::HasArgOfType<TaskShutdownBehavior, ArgTypes...>::value), in TaskTraits()
/external/clang/lib/CodeGen/
DCGCUDABuiltin.cpp25 llvm::Type *ArgTypes[] = {llvm::Type::getInt8PtrTy(M.getContext()), in GetVprintfDeclaration() local
28 llvm::Type::getInt32Ty(M.getContext()), ArgTypes, false); in GetVprintfDeclaration()
99 llvm::SmallVector<llvm::Type *, 8> ArgTypes; in EmitCUDADevicePrintfCallExpr() local
101 ArgTypes.push_back(Args[I].RV.getScalarVal()->getType()); in EmitCUDADevicePrintfCallExpr()
102 llvm::Type *AllocaTy = llvm::StructType::create(ArgTypes, "printf_args"); in EmitCUDADevicePrintfCallExpr()
DObjectFilePCHContainerOperations.cpp107 SmallVector<QualType, 16> ArgTypes; in VisitFunctionDecl() local
109 ArgTypes.push_back(i->getType()); in VisitFunctionDecl()
111 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl()
123 SmallVector<QualType, 16> ArgTypes; in VisitObjCMethodDecl() local
124 ArgTypes.push_back(D->getSelfType(Ctx, D->getClassInterface(), in VisitObjCMethodDecl()
126 ArgTypes.push_back(Ctx.getObjCSelType()); in VisitObjCMethodDecl()
128 ArgTypes.push_back(i->getType()); in VisitObjCMethodDecl()
130 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl()
DCGCUDANV.cpp123 std::vector<llvm::Type *> ArgTypes; in emitDeviceStubBody() local
129 ArgTypes.push_back(cast<llvm::PointerType>(V->getType())->getElementType()); in emitDeviceStubBody()
131 llvm::StructType *ArgStackTy = llvm::StructType::get(Context, ArgTypes); in emitDeviceStubBody()
142 llvm::ConstantExpr::getSizeOf(ArgTypes[I]), in emitDeviceStubBody()
DCGCall.cpp356 SmallVector<CanQualType, 16> ArgTypes; in arrangeCXXConstructorCall() local
358 ArgTypes.push_back(Context.getCanonicalParamType(Arg.Ty)); in arrangeCXXConstructorCall()
364 ? ArgTypes.front() in arrangeCXXConstructorCall()
371 ArgTypes.size()); in arrangeCXXConstructorCall()
373 /*chainCall=*/false, ArgTypes, Info, in arrangeCXXConstructorCall()
1506 SmallVector<llvm::Type*, 8> ArgTypes(IRFunctionArgs.totalIRArgs()); in GetFunctionType() local
1513 ArgTypes[IRFunctionArgs.getSRetArgNo()] = in GetFunctionType()
1521 ArgTypes[IRFunctionArgs.getInallocaArgNo()] = ArgStruct->getPointerTo(); in GetFunctionType()
1533 ArgTypes[IRFunctionArgs.getPaddingArgNo(ArgNo)] = in GetFunctionType()
1549 ArgTypes[FirstIRArg] = LTy->getPointerTo(); in GetFunctionType()
[all …]
/external/libcxx/test/support/
Duses_alloc_types.hpp86 template <class ...ArgTypes, class TestType>
94 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
96 return value.template checkConstruct<ArgTypes&&...>(form, alloc); in checkConstruct()
101 template <class ...ArgTypes, class TestType>
103 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
191 template <class ...ArgTypes>
193 auto expectArgs = &makeArgumentID<ArgTypes...>(); in checkConstruct()
198 template <class ...ArgTypes>
201 auto ExpectID = &makeArgumentID<ArgTypes...>() ; in checkConstruct()
/external/libcxx/include/experimental/
Dfunctional31 template<class R, class... ArgTypes> class function<R(ArgTypes...)>;
33 template<class R, class... ArgTypes>
34 void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&);
36 template<class R, class... ArgTypes>
37 bool operator==(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
38 template<class R, class... ArgTypes>
39 bool operator==(nullptr_t, const function<R(ArgTypes...)>&) noexcept;
40 template<class R, class... ArgTypes>
41 bool operator!=(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
42 template<class R, class... ArgTypes>
[all …]
Dtype_traits26 template <class F, class... ArgTypes> class invocation_type<F(ArgTypes...)>;
28 template <class F, class... ArgTypes> class raw_invocation_type<F(ArgTypes...)>;
/external/llvm/unittests/IR/
DFunctionTest.cpp19 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
20 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
41 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
42 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DIntrinsicEmitter.cpp209 const std::vector<Record*> &ArgTypes, in EmitTypeGenerate() argument
211 if (ArgTypes.empty()) in EmitTypeGenerate()
214 if (ArgTypes.size() == 1) in EmitTypeGenerate()
215 return EmitTypeGenerate(OS, ArgTypes.front(), ArgNo); in EmitTypeGenerate()
220 I = ArgTypes.begin(), E = ArgTypes.end(); I != E; ++I) { in EmitTypeGenerate()
341 const RecPair &ArgTypes = I->first; in EmitVerifier() local
342 const std::vector<Record*> &RetTys = ArgTypes.first; in EmitVerifier()
343 const std::vector<Record*> &ParamTys = ArgTypes.second; in EmitVerifier()
438 const RecPair &ArgTypes = I->first; in EmitGenerator() local
439 const std::vector<Record*> &RetTys = ArgTypes.first; in EmitGenerator()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DFunctionTest.cpp20 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
21 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
42 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
43 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/
Dp21.cpp11 template<class R, class ... ArgTypes> struct X<R(int, ArgTypes ...)> {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp274 SmallVector<Type *, 8> ArgTypes; in addImplicitArgs() local
282 ArgTypes.push_back(FT->getParamType(i)); in addImplicitArgs()
290 ArgTypes.push_back(ImageSizeType); in addImplicitArgs()
295 ArgTypes.push_back(ImageFormatType); in addImplicitArgs()
306 auto NewFT = FunctionType::get(FT->getReturnType(), ArgTypes, false); in addImplicitArgs()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp257 SmallVector<Type *, 8> ArgTypes; in addImplicitArgs() local
265 ArgTypes.push_back(FT->getParamType(i)); in addImplicitArgs()
273 ArgTypes.push_back(ImageSizeType); in addImplicitArgs()
278 ArgTypes.push_back(ImageFormatType); in addImplicitArgs()
289 auto NewFT = FunctionType::get(FT->getReturnType(), ArgTypes, false); in addImplicitArgs()
/external/clang/test/CodeGenCXX/
Dmangle-variadic-templates.cpp55 template<typename R, typename ...ArgTypes> identity<R(ArgTypes...)> f5() {} in f5()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp484 SmallVector<Type *, 4> ArgTypes(T->param_begin(), T->param_end()); in getArgsFunctionType() local
485 ArgTypes.append(T->getNumParams(), ShadowTy); in getArgsFunctionType()
487 ArgTypes.push_back(ShadowPtrTy); in getArgsFunctionType()
491 return FunctionType::get(RetType, ArgTypes, T->isVarArg()); in getArgsFunctionType()
496 SmallVector<Type *, 4> ArgTypes; in getTrampolineFunctionType() local
497 ArgTypes.push_back(T->getPointerTo()); in getTrampolineFunctionType()
498 ArgTypes.append(T->param_begin(), T->param_end()); in getTrampolineFunctionType()
499 ArgTypes.append(T->getNumParams(), ShadowTy); in getTrampolineFunctionType()
502 ArgTypes.push_back(ShadowPtrTy); in getTrampolineFunctionType()
503 return FunctionType::get(T->getReturnType(), ArgTypes, false); in getTrampolineFunctionType()
[all …]
/external/llvm/include/llvm/ADT/
DOptional.h74 template<typename ...ArgTypes>
75 void emplace(ArgTypes &&...Args) { in emplace()
78 new (storage.buffer) T(std::forward<ArgTypes>(Args)...); in emplace()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp381 llvm::SmallVector<Type *, 4> ArgTypes(T->param_begin(), T->param_end()); in getArgsFunctionType() local
382 ArgTypes.append(T->getNumParams(), ShadowTy); in getArgsFunctionType()
384 ArgTypes.push_back(ShadowPtrTy); in getArgsFunctionType()
388 return FunctionType::get(RetType, ArgTypes, T->isVarArg()); in getArgsFunctionType()
393 llvm::SmallVector<Type *, 4> ArgTypes; in getTrampolineFunctionType() local
394 ArgTypes.push_back(T->getPointerTo()); in getTrampolineFunctionType()
395 ArgTypes.append(T->param_begin(), T->param_end()); in getTrampolineFunctionType()
396 ArgTypes.append(T->getNumParams(), ShadowTy); in getTrampolineFunctionType()
399 ArgTypes.push_back(ShadowPtrTy); in getTrampolineFunctionType()
400 return FunctionType::get(T->getReturnType(), ArgTypes, false); in getTrampolineFunctionType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DEntryExitInstrumenter.cpp41 Type *ArgTypes[] = {Type::getInt8PtrTy(C), Type::getInt8PtrTy(C)}; in insertCall() local
44 Func, FunctionType::get(Type::getVoidTy(C), ArgTypes, false)); in insertCall()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DOptional.h74 template<typename ...ArgTypes>
75 void emplace(ArgTypes &&...Args) { in emplace()
78 new (storage.buffer) T(std::forward<ArgTypes>(Args)...); in emplace()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DOptional.h153 template <typename... ArgTypes> void emplace(ArgTypes &&... Args) {
156 new (getPointer()) T(std::forward<ArgTypes>(Args)...);
/external/spirv-llvm/lib/SPIRV/
DSPIRVUtil.cpp300 getOrCreateFunction(Module *M, Type *RetTy, ArrayRef<Type *> ArgTypes, in getOrCreateFunction() argument
306 MangledName = mangleBuiltin(Name, ArgTypes, Mangle); in getOrCreateFunction()
308 if(isVarArg) ArgTypes = ArgTypes.slice(0, Mangle->getVarArg()); in getOrCreateFunction()
310 FunctionType *FT = FunctionType::get(RetTy, ArgTypes, isVarArg); in getOrCreateFunction()
1383 ArrayRef<Type*> ArgTypes, BuiltinFuncMangleInfo* BtnInfo) { in mangleBuiltin() argument
1394 if (ArgTypes.empty()) { in mangleBuiltin()
1403 E = BIVarArgNegative ? ArgTypes.size() : (unsigned)BtnInfo->getVarArg(); in mangleBuiltin()
1405 auto T = ArgTypes[I]; in mangleBuiltin()
1411 assert((unsigned)BtnInfo->getVarArg() <= ArgTypes.size() in mangleBuiltin()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp419 SmallVectorImpl<QualType> &ArgTypes,
2662 SmallVector<QualType, 4> ArgTypes; in RewriteObjCBoxedExpr() local
2663 ArgTypes.push_back(Context->getObjCClassType()); in RewriteObjCBoxedExpr()
2664 ArgTypes.push_back(Context->getObjCSelType()); in RewriteObjCBoxedExpr()
2666 ArgTypes.push_back(PI->getType()); in RewriteObjCBoxedExpr()
2682 getSimpleFunctionType(returnType, ArgTypes, BoxingMethod->isVariadic()); in RewriteObjCBoxedExpr()
2785 SmallVector<QualType, 4> ArgTypes; in RewriteObjCArrayLiteralExpr() local
2786 ArgTypes.push_back(Context->getObjCClassType()); in RewriteObjCArrayLiteralExpr()
2787 ArgTypes.push_back(Context->getObjCSelType()); in RewriteObjCArrayLiteralExpr()
2789 ArgTypes.push_back(PI->getType()); in RewriteObjCArrayLiteralExpr()
[all …]

123