Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
H A Dalloc_function.pass.cpp30 template <class FuncType, class AllocType>
36 std::function<FuncType> f = FunctionObject(); in test_FunctionObject()
40 RTTI_ASSERT(f.template target<FuncType>() == 0); in test_FunctionObject()
41 RTTI_ASSERT(f.template target<FuncType*>() == 0); in test_FunctionObject()
54 template <class FuncType, class AllocType>
60 FuncType* target = &FreeFunction; in test_FreeFunction()
61 std::function<FuncType> f = target; in test_FreeFunction()
63 RTTI_ASSERT(f.template target<FuncType*>()); in test_FreeFunction()
65 RTTI_ASSERT(f.template target<FuncType>() == 0); in test_FreeFunction()
69 RTTI_ASSERT(f2.template target<FuncType*>()); in test_FreeFunction()
[all …]
H A Dalloc_F.pass.cpp43 template <class FuncType, class AllocType>
51 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FunctionObject()
55 assert(f2.template target<FuncType>() == 0); in test_FunctionObject()
56 assert(f2.template target<FuncType*>() == 0); in test_FunctionObject()
63 template <class FuncType, class AllocType>
68 FuncType* target = &FreeFunction; in test_FreeFunction()
74 assert(f2.template target<FuncType*>()); in test_FreeFunction()
75 assert(*f2.template target<FuncType*>() == target); in test_FreeFunction()
76 assert(f2.template target<FuncType>() == 0); in test_FreeFunction()
82 template <class TargetType, class FuncType, class AllocType>
[all …]
/llvm-project-15.0.7/llvm/test/tools/opt-viewer/Inputs/suppress/
H A Ds.opt.yaml13 - FuncType: '(Int, Int, @thin CountableRange<Int>.Type) -> CountableRange<Int>'
27 - FuncType: '(@in_guaranteed CountableRange<Int>) -> IndexingIterator<CountableRange<Int>>'
41 - FuncType: '(@inout IndexingIterator<CountableRange<Int>>) -> Optional<Int>'
55 - FuncType: '(Builtin.Word) -> (@owned Array<Any>, Builtin.RawPointer)'
69 - FuncType: '(Int, @guaranteed Array<Int>) -> Int'
131 - FuncType: '(Builtin.Word) -> (@owned Array<Int>, Builtin.RawPointer)'
145 - FuncType: '(@owned Array<Int>, @thin Array<Int>.Type) -> @owned Array<Int>'
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DTypeTraitsTest.cpp33 using FuncType = bool (*)(const int &); typedef
34 struct CheckFunctionPointer : CheckFunctionTraits<FuncType> {};
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DDelta.cpp149 template <typename FuncType>
153 FuncType ExtractChunksFromModule, in CheckChunk()
198 template <typename FuncType>
201 FuncType ExtractChunksFromModule, std::set<Chunk> &UninterestingChunks, in ProcessChunkFromSerializedBitcode()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DCloningTest.cpp465 FunctionType* FuncType = FunctionType::get(Type::getVoidTy(C), false); in CreateOldFunc() local
466 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
477 DISubroutineType *FuncType = in CreateOldFunctionBodyAndDI() local
485 CU, "f", "f", File, 4, FuncType, 3, DINode::FlagZero, in CreateOldFunctionBodyAndDI()
517 CU, "inlined", "inlined", File, 8, FuncType, 9, DINode::FlagZero, in CreateOldFunctionBodyAndDI()
938 auto *FuncType = FunctionType::get(Type::getVoidTy(C), false); in CreateOldModule() local
939 auto *PersFn = Function::Create(FuncType, GlobalValue::ExternalLinkage, in CreateOldModule()
942 Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", OldM); in CreateOldModule()
978 Function::Create(FuncType, GlobalValue::ExternalLinkage, "g", OldM); in CreateOldModule()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DFunctionTest.cpp143 FunctionType *FuncType(FunctionType::get(VoidType, false)); in TEST() local
145 FuncType, GlobalValue::ExternalLinkage)); in TEST()
H A DConstantsTest.cpp506 FunctionType *FuncType(FunctionType::get(VoidType, false)); in foldFuncPtrAndConstToNull() local
508 Function::Create(FuncType, GlobalValue::ExternalLinkage, "", TheModule)); in foldFuncPtrAndConstToNull()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiation-default-1.cpp83 typename FuncType = R (*)(Arg1, Arg2)>
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h656 using FuncType = ReturnType (*)();
658 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)());
667 using FuncType = ReturnType (*)(ArgType1);
670 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
680 using FuncType = ReturnType (*)(ArgType1, ArgType2);
684 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-using.cpp156 typedef my_cclass FuncType; typedef
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dintrinsics-library.cpp142 template <typename FuncType, typename TR, typename... TA, size_t... I>
143 static Expr<SomeType> ApplyHostFunctionHelper(FuncType func, in ApplyHostFunctionHelper()
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/
H A DDW_AT_decl_file-DW_AT_specification-crosscu.s10 # CHECK: FuncType: id = {0x0000002a}, byte-size = 0, decl = filename1:1, compiler_type = "int (void…
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp791 const FunctionType *FuncType = Decl->getFunctionType(); in checkPostCall() local
792 if (!FuncType) in checkPostCall()
794 QualType ReturnType = FuncType->getReturnType(); in checkPostCall()
/llvm-project-15.0.7/clang/test/Parser/
H A Dcxx0x-attributes.cpp257 using FuncType = void ([[]] int);
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DAssumeBundleQueriesTest.cpp424 FunctionType *FuncType = in RunRandTest() local
428 Function::Create(FuncType, GlobalValue::ExternalLinkage, "test", &*Mod); in RunRandTest()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp424 for (uint32_t FuncType : Section.FunctionTypes) in writeSectionContent() local
425 encodeULEB128(FuncType, OS); in writeSectionContent()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp664 struct FuncType { in checkMustTailAttr() struct
677 auto GetMethodType = [this, St, MTA](const CXXMethodDecl *CMD, FuncType &Type, in checkMustTailAttr()
689 Type.MemberType = FuncType::ft_static_member; in checkMustTailAttr()
692 Type.MemberType = FuncType::ft_non_static_member; in checkMustTailAttr()
739 CalleeType.MemberType = FuncType::ft_pointer_to_member; in checkMustTailAttr()
803 auto CheckTypesMatch = [this](FuncType CallerType, FuncType CalleeType, in checkMustTailAttr()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp179 using FuncType = std::function<Value *(Instruction *, LLVMContext &)>; typedef
180 Rule(StringRef N, FuncType F) : Name(N), Fn(F) {} in Rule()
182 FuncType Fn;
185 void addRule(StringRef N, const Rule::FuncType &F) { in addRule()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp3101 QualType FuncType = getSimpleFunctionType( in SynthMsgSendStretCallExpr() local
3103 QualType castType = Context->getPointerType(FuncType); in SynthMsgSendStretCallExpr()
3179 ID, FuncType, nullptr, SC_Extern, false, false); in SynthMsgSendStretCallExpr()
4545 QualType FuncType; in convertFunctionTypeOfBlocks() local
4547 FuncType = getSimpleFunctionType(Res, ArgTypes); in convertFunctionTypeOfBlocks()
4548 else FuncType = QualType(FT, 0); in convertFunctionTypeOfBlocks()
4549 return FuncType; in convertFunctionTypeOfBlocks()
H A DRewriteObjC.cpp3710 QualType FuncType; in convertFunctionTypeOfBlocks() local
3714 FuncType = getSimpleFunctionType(Res, ArgTypes); in convertFunctionTypeOfBlocks()
3715 else FuncType = QualType(FT, 0); in convertFunctionTypeOfBlocks()
3716 return FuncType; in convertFunctionTypeOfBlocks()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1434 FunctionType *FuncType = FunctionType::get(ReturnType, ParamTypes, IsVaArgs); in emitLibCall() local
1435 FunctionCallee Callee = getOrInsertLibFunc(M, *TLI, TheLibFunc, FuncType); in emitLibCall()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIRTypes.td572 def FuncType : TypeConstraint<FunctionType.predicate, "function type">;
H A DFIROps.td901 let arguments = (ins FuncType:$func, Optional<fir_ReferenceType>:$host);
/llvm-project-15.0.7/lldb/docs/use/
H A Dsymbolication.rst226FuncType: id = {0x0000004f}, decl = main.c:9, compiler_type = "int (int, const char **, const char…