| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | NonTrivialTypeVisitor.h | 22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit() 23 return asDerived().visitWithKind(FT.isDestructedType(), FT, in visit() 28 RetTy visitWithKind(QualType::DestructionKind DK, QualType FT, in visitWithKind() 34 return asDerived().visitStruct(FT, std::forward<Ts>(Args)...); in visitWithKind() 51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit() 53 FT.isNonTrivialToPrimitiveDefaultInitialize(), FT, in visit() 59 QualType FT, Ts &&... Args) { in visitWithKind() 79 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit() 81 IsMove ? FT.isNonTrivialToPrimitiveDestructiveMove() in visit() 82 : FT.isNonTrivialToPrimitiveCopy(); in visit() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGNonTrivialStruct.cpp | 29 return Ctx.getTypeSize(FT); in getFieldSize() 45 QualType FT = FD->getType(); in visitStructFields() local 46 FT = QT.isVolatileQualified() ? FT.withVolatile() : FT; in visitStructFields() 102 Super::visitWithKind(PCK, FT, FD, CurStructOffset, in visitWithKind() 111 uint64_t FieldSize = getFieldSize(FD, FT, Ctx); in visitTrivial() 162 if (FT->isBlockPointerType()) in visitARCStrong() 168 void visitARCWeak(QualType FT, const FieldDecl *FD, in visitARCWeak() 768 CGF->MakeAddrLValue(Addrs[DstIdx], FT), in callSpecialFunction() 769 CGF->MakeAddrLValue(Addrs[SrcIdx], FT)); in callSpecialFunction() 804 CGF->MakeAddrLValue(Addrs[DstIdx], FT), in callSpecialFunction() [all …]
|
| H A D | CodeGenTypes.cpp | 249 bool CodeGenTypes::isFuncTypeConvertible(const FunctionType *FT) { in isFuncTypeConvertible() argument 250 if (!isFuncParamTypeConvertible(FT->getReturnType())) in isFuncTypeConvertible() 253 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible() 337 const FunctionType *FT = cast<FunctionType>(QFT.getTypePtr()); in ConvertFunctionTypeInternal() local 341 if (!isFuncTypeConvertible(FT)) { in ConvertFunctionTypeInternal() 346 if (const RecordType *RT = FT->getReturnType()->getAs<RecordType>()) in ConvertFunctionTypeInternal() 348 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in ConvertFunctionTypeInternal() 370 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertFunctionTypeInternal() 374 const FunctionNoProtoType *FNPT = cast<FunctionNoProtoType>(FT); in ConvertFunctionTypeInternal()
|
| H A D | CodeGenABITypes.cpp | 102 if (auto FT = dyn_cast<llvm::FunctionType>(T)) in convertFreeFunctionType() local 103 return FT; in convertFreeFunctionType()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | ExternalFunctions.cpp | 104 FunctionType *FT = F->getFunctionType(); in lookupFunction() local 105 ExtName += getTypeID(FT->getReturnType()); in lookupFunction() 106 for (Type *T : FT->params()) in lookupFunction() 312 static GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit() argument 337 static GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf() argument 419 static GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf() argument 425 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_printf() 431 static GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf() argument 468 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_fprintf() 474 static GenericValue lle_X_memset(FunctionType *FT, in lle_X_memset() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 512 auto FT = F->getFunctionType(); in checkWFRetconPrototype() local 529 if (FT->getReturnType() != in checkWFRetconPrototype() 537 if (FT->getNumParams() == 0 || !FT->getParamType(0)->isPointerTy()) in checkWFRetconPrototype() 548 auto FT = F->getFunctionType(); in checkWFAlloc() local 549 if (!FT->getReturnType()->isPointerTy()) in checkWFAlloc() 552 if (FT->getNumParams() != 1 || in checkWFAlloc() 553 !FT->getParamType(0)->isIntegerTy()) in checkWFAlloc() 563 auto FT = F->getFunctionType(); in checkWFDealloc() local 564 if (!FT->getReturnType()->isVoidTy()) in checkWFDealloc() 567 if (FT->getNumParams() != 1 || in checkWFDealloc() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/ |
| H A D | Sparc.td | 128 // LEON 2 FT generic 132 // LEON 2 FT (AT697E) 137 // LEON 2 FT (AT697F) 143 // LEON 3 FT generic 147 // LEON 3 FT (UT699). Provides features for the UT699 processor 152 // LEON3 FT (GR712RC). Provides features for the GR712RC processor. 157 // LEON 4 FT generic 161 // LEON 4 FT (GR740)
|
| H A D | LeonFeatures.td | 27 // CASA Support differs between LEON3-FT GR712RC and LEON3-FT UT699
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | cxx-template-argument.cpp | 139 template<typename FT> bool f(FT p) { in f() 140 const bool a = p.first<FT(0), b = p.second>FT(0); in f()
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | merge-control-file.test | 35 RUN: echo FT 0 11 >> %t/MCF 37 RUN: echo FT 1 12 >> %t/MCF 45 RUN: echo FT 0 11 >> %t/MCF 47 RUN: echo FT 1 12 >> %t/MCF 49 RUN: echo FT 2 13 >> %t/MCF
|
| /llvm-project-15.0.7/clang/utils/ABITest/ |
| H A D | ABITestGen.py | 104 def writeFunction(self, i, FT): argument 109 if FT.returnType is None: 113 retvalTypeName = self.getTypeName(FT.returnType) 115 retvalName = self.getTestReturnValue(FT.returnType) 117 fnName = 'fn%d'%(FT.index,) 127 for i,t in enumerate(FT.argTypes): 150 retvalTests = self.getTestValuesArray(FT.returnType) 151 tests = [self.getTestValuesArray(ty) for ty in FT.argTypes] 645 FT = ftg.get(N) 652 P.writeLayoutTest(N, FT) [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | CodeGen.cpp | 138 static Context getCtx(FunctionType FT) { in getCtx() argument 139 switch (FT) { in getCtx() 527 static void Serialize(raw_ostream &Stream, FunctionType FT, in Serialize() argument 530 Conf.Name = {FT}; in Serialize() 531 Conf.Type = {FT}; in Serialize() 533 if (FD.Desc.Type == FT) in Serialize() 620 static StringRef getString(FunctionType FT) { in getString() argument 621 switch (FT) { in getString()
|
| /llvm-project-15.0.7/llvm/examples/ModuleMaker/ |
| H A D | ModuleMaker.cpp | 38 FunctionType *FT = in main() local 43 Function *F = Function::Create(FT, Function::ExternalLinkage, "main", M); in main()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Mangler.cpp | 177 FunctionType *FT = MSFunc->getFunctionType(); in getNameWithPrefix() local 180 (!FT->isVarArg() || FT->getNumParams() == 0 || in getNameWithPrefix() 181 (FT->getNumParams() == 1 && MSFunc->hasStructRetAttr()))) in getNameWithPrefix()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | BasicBlockTest.cpp | 105 FunctionType *FT = FunctionType::get(Type::getVoidTy(Ctx), ArgTy1, false); in TEST() local 107 Function *F = Function::Create(FT, Function::ExternalLinkage, "", M); in TEST() 176 FunctionType *FT = FunctionType::get(Type::getVoidTy(Ctx), {}, false); in TEST() local 177 Function *F = Function::Create(FT, Function::ExternalLinkage, "", M); in TEST() 194 FunctionType *FT = FunctionType::get(Type::getVoidTy(Ctx), {}, false); in SetUp() local 195 Function *F = Function::Create(FT, Function::ExternalLinkage, "foo", *M); in SetUp()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclPrinter.cpp | 667 const FunctionProtoType *FT = nullptr; in VisitFunctionDecl() local 672 if (FT) { in VisitFunctionDecl() 680 if (FT->isVariadic()) { in VisitFunctionDecl() 698 if (FT) { in VisitFunctionDecl() 699 if (FT->isConst()) in VisitFunctionDecl() 701 if (FT->isVolatile()) in VisitFunctionDecl() 703 if (FT->isRestrict()) in VisitFunctionDecl() 706 switch (FT->getRefQualifier()) { in VisitFunctionDecl() 718 if (FT && FT->hasDynamicExceptionSpec()) { in VisitFunctionDecl() 730 } else if (FT && isNoexceptExceptionSpec(FT->getExceptionSpecType())) { in VisitFunctionDecl() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | FaultMapParser.cpp | 16 void printFaultType(FaultMapParser::FaultKind FT, raw_ostream &OS) { in printFaultType() argument 17 switch (FT) { in printFaultType()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 366 explicit AMDGPULibFunc(StringRef FName, FunctionType *FT); 442 explicit AMDGPUUnmangledLibFunc(StringRef FName, FunctionType *FT) { in AMDGPUUnmangledLibFunc() argument 444 FuncTy = FT; in AMDGPUUnmangledLibFunc() 457 void setFunctionType(FunctionType *FT) { FuncTy = FT; } in setFunctionType() argument
|
| H A D | R600OpenCLImageTypeLoweringPass.cpp | 257 FunctionType *FT = F->getFunctionType(); in addImplicitArgs() local 265 for (unsigned i = 0; i < FT->getNumParams(); ++i) { in addImplicitArgs() 266 ArgTypes.push_back(FT->getParamType(i)); in addImplicitArgs() 290 auto NewFT = FunctionType::get(FT->getReturnType(), ArgTypes, false); in addImplicitArgs()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVDuplicatesTracker.h | 114 SPIRVDuplicatesTracker<Function> FT; variable 146 FT.add(F, MF, R); in add() 166 return FT.find(const_cast<Function *>(F), MF); in find()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | convert-member-functions-to-static.cpp | 99 using FT = int (*)(); in KeepLambdas() typedef 100 auto F = static_cast<FT>([]() { return 0; }); in KeepLambdas()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | RetainSummaryManager.cpp | 296 const FunctionType *FT, in getSummaryForObjCOrCFObject() argument 309 return RetTy->isObjCIdType() ? getUnarySummary(FT, DoNothing) in getSummaryForObjCOrCFObject() 421 return getUnarySummary(FT, IncRef); in getSummaryForObjCOrCFObject() 427 return getUnarySummary(FT, Autorelease); in getSummaryForObjCOrCFObject() 430 return getUnarySummary(FT, DoNothing); in getSummaryForObjCOrCFObject() 440 return getUnarySummary(FT, IncRef); in getSummaryForObjCOrCFObject() 464 return getUnarySummary(FT, DecRef); in getSummaryForObjCOrCFObject() 515 const auto *FT = FD->getType()->castAs<FunctionType>(); in generateSummary() local 516 QualType RetTy = FT->getReturnType(); in generateSummary() 788 RetainSummaryManager::getUnarySummary(const FunctionType* FT, in getUnarySummary() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.cpp | 269 Type *DXILOpBuilder::getOverloadTy(DXIL::OpCode OpCode, FunctionType *FT, in getOverloadTy() argument 274 auto &Ctx = FT->getContext(); in getOverloadTy() 302 Type *OverloadType = FT->getReturnType(); in getOverloadTy() 306 OverloadType = FT->getParamType(Prop->OverloadParamIndex - SkipedParam); in getOverloadTy()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | FaultMaps.cpp | 103 const char *FaultMaps::faultTypeToString(FaultMaps::FaultKind FT) { in faultTypeToString() argument 104 switch (FT) { in faultTypeToString()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 1163 FunctionType *FT = F->getFunctionType(); in buildWrapperFunction() local 1182 if (FT->getReturnType()->isVoidTy()) in buildWrapperFunction() 1428 bool IsZeroArgsVoidRet = (FT->getNumParams() == 0 && !FT->isVarArg() && in runImpl() 1454 WrapperLinkage, FT); in runImpl() 1515 } else if (FT->isVarArg()) { in runImpl() 2805 FunctionType *FT = F.getFunctionType(); in addShadowArguments() local 2814 if (FT->isVarArg()) { in addShadowArguments() 2831 if (!FT->getReturnType()->isVoidTy()) { in addShadowArguments() 2844 FunctionType *FT = F.getFunctionType(); in addOriginArguments() local 2853 if (FT->isVarArg()) { in addOriginArguments() [all …]
|