| /llvm-project/libcxx/test/std/concepts/concepts.lang/concept.convertible/ |
| H A D | convertible_to.pass.cpp | 89 using Function = void(); typedef 140 CheckNotConvertibleTo<void, Function>(); in main() 141 CheckNotConvertibleTo<void, Function&>(); in main() 142 CheckNotConvertibleTo<void, Function*>(); in main() 154 CheckNotConvertibleTo<Function, void>(); in main() 155 CheckNotConvertibleTo<Function, Function>(); in main() 156 CheckNotConvertibleTo<Function, NoexceptFunction>(); in main() 157 CheckNotConvertibleTo<Function, NoexceptFunction&>(); in main() 158 CheckNotConvertibleTo<Function, NoexceptFunction*>(); in main() 159 CheckNotConvertibleTo<Function, NoexceptFunction* const>(); in main() [all …]
|
| /llvm-project/libcxx/test/std/utilities/meta/meta.rel/ |
| H A D | is_convertible.pass.cpp | 46 typedef void Function(); typedef 69 test_is_not_convertible<void,Function> (); in main() 70 test_is_not_convertible<void,Function&> (); in main() 71 test_is_not_convertible<void,Function*> (); in main() 80 test_is_not_convertible<Function, void> (); in main() 81 test_is_not_convertible<Function, Function> (); in main() 82 test_is_convertible<Function, Function&> (); in main() 83 test_is_convertible<Function, Function*> (); in main() 84 test_is_convertible<Function, Function*const> (); in main() 86 static_assert(( std::is_convertible<Function, Function&&>::value), ""); in main() [all …]
|
| /llvm-project/mlir/test/Dialect/SPIRV/IR/ |
| H A D | memory-ops.mlir | 9 %1 = spirv.Variable : !spirv.ptr<!spirv.struct<(f32, !spirv.array<4xf32>)>, Function> 10 // CHECK: spirv.AccessChain {{.*}}[{{.*}}, {{.*}}] : !spirv.ptr<!spirv.struct<(f32, !spirv.array<4 x f32>)>, Function> 11 %2 = spirv.AccessChain %1[%0, %0] : !spirv.ptr<!spirv.struct<(f32, !spirv.array<4xf32>)>, Function>, i32, i32 -> !spirv.ptr<f32, Function> 16 %0 = spirv.Variable : !spirv.ptr<!spirv.array<4xf32>, Function> 17 // CHECK: spirv.AccessChain {{.*}}[{{.*}}] : !spirv.ptr<!spirv.array<4 x f32>, Function> 18 %1 = spirv.AccessChain %0[%arg0] : !spirv.ptr<!spirv.array<4xf32>, Function>, i32 -> !spirv.ptr<f32, Function> 23 %0 = spirv.Variable : !spirv.ptr<!spirv.array<4x!spirv.array<4xf32>>, Function> 24 // CHECK: spirv.AccessChain {{.*}}[{{.*}}, {{.*}}] : !spirv.ptr<!spirv.array<4 x !spirv.array<4 x f32>>, Function> [all...] |
| /llvm-project/bolt/lib/Passes/ |
| H A D | ValidateInternalCalls.cpp | 30 BinaryBasicBlock *getInternalCallTarget(BinaryFunction &Function, in getInternalCallTarget() argument 32 const BinaryContext &BC = Function.getBinaryContext(); in getInternalCallTarget() 37 return Function.getBasicBlockForLabel(BC.MIB->getTargetSymbol(Inst)); in getInternalCallTarget() 96 void ValidateInternalCalls::fixCFGForPIC(BinaryFunction &Function) const { in fixCFGForPIC() 98 for (BinaryBasicBlock &BB : Function) in fixCFGForPIC() 108 return getInternalCallTarget(Function, Inst) != nullptr; in fixCFGForPIC() 115 BinaryBasicBlock *Target = getInternalCallTarget(Function, *InternalCall); in fixCFGForPIC() 119 std::unique_ptr<BinaryBasicBlock> NewBB = Function.createBasicBlock(); in fixCFGForPIC() 126 Function.insertBasicBlocks(&BB, std::move(NewBBs)); in fixCFGForPIC() 134 bool ValidateInternalCalls::fixCFGForIC(BinaryFunction &Function) cons 311 BinaryFunction &Function = BFI.second; runOnFunctions() local [all...] |
| H A D | RegReAssign.cpp | 39 void RegReAssign::swap(BinaryFunction &Function, MCPhysReg A, MCPhysReg B) { in swap() argument 40 BinaryContext &BC = Function.getBinaryContext(); in swap() 45 for (BinaryBasicBlock &BB : Function) { in swap() 69 for (BinaryBasicBlock &BB : Function) { in swap() 73 const MCCFIInstruction *CFI = Function.getCFIFor(Inst); in swap() 83 Function.setCFIFor( in swap() 90 Function.setCFIFor( in swap() 120 Function.mutateCFIRegisterFor( in swap() 125 Function.mutateCFIRegisterFor( in swap() 138 void RegReAssign::rankRegisters(BinaryFunction &Function) { in rankRegisters() argument [all …]
|
| /llvm-project/llvm/test/Transforms/Attributor/reduced/ |
| H A D | register_benchmark_test.ll | 175 ; Function Attrs: uwtable 180 ; Function Attrs: uwtable 185 ; Function Attrs: nounwind 188 ; Function Attrs: nounwind 191 ; Function Attrs: uwtable 194 ; Function Attrs: nounwind uwtable 197 ; Function Attrs: nounwind uwtable 200 ; Function Attrs: uwtable 203 ; Function Attrs: argmemonly nounwind willreturn 206 ; Function Attrs: alwaysinline uwtable [all …]
|
| /llvm-project/llvm/test/Transforms/OpenMP/ |
| H A D | add_attributes.ll | 672 ; Function Attrs: noinline cold 756 ; CHECK: ; Function Attrs: nounwind 759 ; CHECK: ; Function Attrs: nounwind 762 ; CHECK: ; Function Attrs: nounwind 765 ; CHECK: ; Function Attrs: nounwind 768 ; CHECK: ; Function Attrs: nounwind 771 ; CHECK: ; Function Attrs: nounwind 774 ; CHECK-NOT: Function Attrs 777 ; CHECK: ; Function Attrs: nounwind 780 ; CHECK: ; Function Attr [all...] |
| /llvm-project/llvm/test/tools/llvm-symbolizer/ |
| H A D | sym-verbose.test | 21 CHECK-NEXT: Function start filename: /tmp{{[\\/]}}discrim.c 22 CHECK-NEXT: Function start line: 4 23 CHECK-NEXT: Function start address: 0x400590 28 CHECK-NEXT: Function start filename: /tmp{{[\\/]}}discrim.c 29 CHECK-NEXT: Function start line: 9 30 CHECK-NEXT: Function start address: 0x400590 37 CHECK-NEXT: Function start filename: /tmp{{[\\/]}}discrim.c 38 CHECK-NEXT: Function start line: 4 39 CHECK-NEXT: Function start address: 0x400590 45 CHECK-NEXT: Function start filename: /tmp{{[\\/]}}discrim.c [all …]
|
| /llvm-project/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITTestBase.h | 47 Function *startFunction(Module *M, FunctionType *FT, StringRef Name) { in startFunction() 48 Function *Result = in startFunction() 49 Function::Create(FT, GlobalValue::ExternalLinkage, Name, M); in startFunction() 57 void endFunctionWithRet(Function *Func, Value *RetValue) { in endFunctionWithRet() 63 Function *insertSimpleCallFunction(Module *M, Function *Callee) { in insertSimpleCallFunction() 64 Function *Result = startFunction(M, Callee->getFunctionType(), "caller"); in insertSimpleCallFunction() 79 Function *insertMainFunction(Module *M, uint32_t returnCode) { in insertMainFunction() 80 Function *Result = startFunction( in insertMainFunction() 92 Function *insertAddFunction(Module *M, StringRef Name = "add") { 93 Function *Result = startFunction( [all …]
|
| /llvm-project/llvm/test/CodeGen/SPIRV/ |
| H A D | basic_float_types.ll | 27 ; CHECK-DAG: %[[#ptr_Function_half:]] = OpTypePointer Function %[[#half]] 28 ; CHECK-DAG: %[[#ptr_Function_float:]] = OpTypePointer Function %[[#float]] 29 ; CHECK-DAG: %[[#ptr_Function_double:]] = OpTypePointer Function %[[#double]] 30 ; CHECK-DAG: %[[#ptr_Function_v2half:]] = OpTypePointer Function %[[#v2half]] 31 ; CHECK-DAG: %[[#ptr_Function_v3half:]] = OpTypePointer Function %[[#v3half]] 32 ; CHECK-DAG: %[[#ptr_Function_v4half:]] = OpTypePointer Function %[[#v4half]] 33 ; CHECK-DAG: %[[#ptr_Function_v2float:]] = OpTypePointer Function %[[#v2float]] 34 ; CHECK-DAG: %[[#ptr_Function_v3float:]] = OpTypePointer Function %[[#v3float]] 35 ; CHECK-DAG: %[[#ptr_Function_v4float:]] = OpTypePointer Function %[[#v4float]] 36 ; CHECK-DAG: %[[#ptr_Function_v2double:]] = OpTypePointer Function [all...] |
| H A D | basic_int_types.ll | 25 ; CHECK-DAG: %[[#ptr_Function_short:]] = OpTypePointer Function %[[#short]] 26 ; CHECK-DAG: %[[#ptr_Function_int:]] = OpTypePointer Function %[[#int]] 27 ; CHECK-DAG: %[[#ptr_Function_long:]] = OpTypePointer Function %[[#long]] 28 ; CHECK-DAG: %[[#ptr_Function_v2short:]] = OpTypePointer Function %[[#v2short]] 29 ; CHECK-DAG: %[[#ptr_Function_v3short:]] = OpTypePointer Function %[[#v3short]] 30 ; CHECK-DAG: %[[#ptr_Function_v4short:]] = OpTypePointer Function %[[#v4short]] 31 ; CHECK-DAG: %[[#ptr_Function_v2int:]] = OpTypePointer Function %[[#v2int]] 32 ; CHECK-DAG: %[[#ptr_Function_v3int:]] = OpTypePointer Function %[[#v3int]] 33 ; CHECK-DAG: %[[#ptr_Function_v4int:]] = OpTypePointer Function %[[#v4int]] 34 ; CHECK-DAG: %[[#ptr_Function_v2long:]] = OpTypePointer Function [all...] |
| /llvm-project/mlir/test/Target/SPIRV/ |
| H A D | memory-ops.mlir | 28 spirv.func @access_chain(%arg0 : !spirv.ptr<!spirv.array<4x!spirv.array<4xf32>>, Function>, %arg1 : i32, %arg2 : i32) "None" { 29 // CHECK: {{%.*}} = spirv.AccessChain {{%.*}}[{{%.*}}] : !spirv.ptr<!spirv.array<4 x !spirv.array<4 x f32>>, Function> 30 // CHECK-NEXT: {{%.*}} = spirv.AccessChain {{%.*}}[{{%.*}}, {{%.*}}] : !spirv.ptr<!spirv.array<4 x !spirv.array<4 x f32>>, Function> 31 %1 = spirv.AccessChain %arg0[%arg1] : !spirv.ptr<!spirv.array<4x!spirv.array<4xf32>>, Function>, i32 -> !spirv.ptr<!spirv.array<4xf32>, Function> 32 %2 = spirv.AccessChain %arg0[%arg1, %arg2] : !spirv.ptr<!spirv.array<4x!spirv.array<4xf32>>, Function>, i32, i32 -> !spirv.ptr<f32, Function> 75 %0 = spirv.Variable : !spirv.ptr<f32, Function> 76 %1 = spirv.Variable : !spirv.ptr<f32, Function> 77 // CHECK: spirv.CopyMemory "Function" [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnusedParametersCheck.cpp | 27 bool isOverrideMethod(const FunctionDecl *Function) { in isOverrideMethod() 28 if (const auto *MD = dyn_cast<CXXMethodDecl>(Function)) in isOverrideMethod() 72 const FunctionDecl *Function, unsigned Index) { in removeArgument() 74 Result, Index > 0 ? Function->getParamDecl(Index - 1) : nullptr, 75 Function->getParamDecl(Index), 76 Index + 1 < Function->getNumParams() ? Function->getParamDecl(Index + 1) 149 const MatchFinder::MatchResult &Result, const FunctionDecl *Function, in warnOnUnusedParameter() 151 const auto *Param = Function->getParamDecl(ParamIndex); in warnOnUnusedParameter() 162 if (Function in warnOnUnusedParameter() 24 isOverrideMethod(const FunctionDecl * Function) isOverrideMethod() argument 58 removeParameter(const MatchFinder::MatchResult & Result,const FunctionDecl * Function,unsigned Index) removeParameter() argument 135 warnOnUnusedParameter(const MatchFinder::MatchResult & Result,const FunctionDecl * Function,unsigned ParamIndex) warnOnUnusedParameter() argument 178 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("function"); check() local [all...] |
| /llvm-project/bolt/lib/Rewrite/ |
| H A D | MachORewriteInstance.cpp | 262 BinaryFunction *Function = BC->createBinaryFunction( in discoverFileObjects() 265 Function->setOutputAddress(Function->getAddress()); in discoverFileObjects() 275 BinaryFunction &Function = BFI.second; in discoverFileObjects() 276 Function.setMaxSize(Function.getSize()); in discoverFileObjects() 278 ErrorOr<ArrayRef<uint8_t>> FunctionData = Function.getData(); in discoverFileObjects() 281 << "empty for function " << Function << '\n'; in discoverFileObjects() 286 if (Function.getSize() == 0) { in discoverFileObjects() 287 Function in discoverFileObjects() 260 BinaryFunction *Function = BC->createBinaryFunction( discoverFileObjects() local 273 BinaryFunction &Function = BFI.second; discoverFileObjects() local 309 BinaryFunction &Function = BFI.second; disassembleFunctions() local 320 BinaryFunction &Function = BFI.second; buildFunctionsCFG() local 329 BinaryFunction &Function = BFI.second; postProcessFunctions() local 510 BinaryFunction &Function = BFI.second; rewriteFile() local 522 for (const BinaryFunction *Function : BC->getInjectedBinaryFunctions()) { rewriteFile() local [all...] |
| /llvm-project/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | |
| /llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.h | 19 #include "llvm/IR/Function.h" 49 std::optional<unsigned> getMaxNTIDx(const Function &); 50 std::optional<unsigned> getMaxNTIDy(const Function &); 51 std::optional<unsigned> getMaxNTIDz(const Function &); 52 std::optional<unsigned> getMaxNTID(const Function &); 54 std::optional<unsigned> getReqNTIDx(const Function &); 55 std::optional<unsigned> getReqNTIDy(const Function &); 56 std::optional<unsigned> getReqNTIDz(const Function &); 57 std::optional<unsigned> getReqNTID(const Function &); 59 std::optional<unsigned> getClusterDimx(const Function [all...] |
| /llvm-project/llvm/test/CodeGen/AArch64/ |
| H A D | arm64-opt-remarks-lazy-bfi.ll | 34 ; HOTNESS-NEXT: Executing Pass 'Function Pass Manager' 35 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 36 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 37 ; HOTNESS-NEXT: Executing Pass 'AArch64 sls hardening pass' on Function 'empty_func'... 38 ; HOTNESS-NEXT: Freeing Pass 'AArch64 sls hardening pass' on Function 'empty_func'... 39 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 40 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 41 ; HOTNESS-NEXT: Executing Pass 'AArch64 Pointer Authentication' on Function 'empty_func'... 42 ; HOTNESS-NEXT: Freeing Pass 'AArch64 Pointer Authentication' on Function 'empty_func'... 43 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... [all …]
|
| /llvm-project/llvm/unittests/IR/ |
| H A D | VerifierTest.cpp | 13 #include "llvm/IR/Function.h" 30 Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", M); in TEST() 53 Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", M); in TEST() 101 Function *F = Function::Create(FTy, Function in TEST() [all...] |
| /llvm-project/llvm/tools/llvm-cov/ |
| H A D | CoverageFilters.cpp | 22 const coverage::FunctionRecord &Function) const { in matches() 23 StringRef FuncName = Function.Name; in matches() 29 const coverage::FunctionRecord &Function) const { in matches() 30 return llvm::Regex(Regex).match(Function.Name); in matches() 39 const coverage::FunctionRecord &Function) const { in matches() 40 return Allowlist.inSection("llvmcov", "allowlist_fun", Function.Name); in matches() 45 const coverage::FunctionRecord &Function) const { in matches() 46 return PassesThreshold(FunctionCoverageSummary::get(CM, Function) in matches() 52 const coverage::FunctionRecord &Function) const { in matches() 53 return PassesThreshold(FunctionCoverageSummary::get(CM, Function) in matches() [all …]
|
| /llvm-project/llvm/test/CodeGen/Mips/ |
| H A D | fp16instrinsmc.ll | 15 ; Function Attrs: nounwind 33 ; Function Attrs: nounwind readnone 36 ; Function Attrs: nounwind 49 ; Function Attrs: nounwind 68 ; Function Attrs: nounwind readnone 71 ; Function Attrs: nounwind 84 ; Function Attrs: nounwind 93 ; Function Attrs: nounwind readnone 96 ; Function Attrs: nounwind 105 ; Function Attr [all...] |
| /llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | FunctionSpecialization.h | 1 //===- FunctionSpecialization.h - Function Specialization -----------------===// 11 // Function Specialization is a transformation which propagates the constant 20 // Function Specialization supports propagating constant parameters like 40 // Function pointers are not handled by the InstCostVisitor. They are treated 99 using SpecMap = DenseMap<Function *, std::pair<unsigned, unsigned>>; 130 Function *F; 133 Function *Clone = nullptr; 147 Spec(Function *F, const SpecSig &S, unsigned Score, unsigned CodeSize) 149 Spec(Function *F, const SpecSig &&S, unsigned Score, unsigned CodeSize) in Bonus() 154 std::function<BlockFrequencyInfo &(Function in Bonus() [all...] |
| /llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 26 // -- We define Function* container class with custom "operator<" (FunctionPtr). 101 #include "llvm/IR/Function.h" 173 mutable AssertingVH<Function> F; 178 FunctionNode(Function *F) : F(F), Hash(StructuralHash(*F)) {} 180 Function *getFunc() const { return F; } 185 void replaceBy(Function *G) const { 200 DenseMap<Function *, Function *> runOnFunctions(ArrayRef<Function *> F); 240 bool insert(Function *NewFunctio [all...] |
| /llvm-project/llvm/test/CodeGen/PowerPC/ |
| H A D | p9-vector-compares-and-counts.ll | 4 ; Function Attrs: nounwind readnone 13 ; Function Attrs: nounwind readnone 16 ; Function Attrs: nounwind readnone 26 ; Function Attrs: nounwind readnone 29 ; Function Attrs: nounwind readnone 38 ; Function Attrs: nounwind readnone 41 ; Function Attrs: nounwind readnone 50 ; Function Attrs: nounwind readnone 53 ; Function Attrs: nounwind readnone 62 ; Function Attrs: nounwind readnone [all …]
|
| /llvm-project/llvm/lib/IR/ |
| H A D | Function.cpp | 1 //===- Function.cpp - Implement the Global object classes -----------------===// 9 // This file implements the Function class for the IR library. 13 #include "llvm/IR/Function.h" 58 using ProfileCount = Function::ProfileCount; 70 void Function::renumberBlocks() { 79 void Function::validateBlockNumbers() const { 91 void Function::convertToNewDbgValues() { in convertToNewDbgValues() 98 void Function::convertFromNewDbgValues() { in convertFromNewDbgValues() 105 void Function::setIsNewDbgInfoFormat(bool NewFlag) { in setIsNewDbgInfoFormat() 111 void Function in setNewDbgInfoFormatFlag() 451 Function::Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace, Function() function in Function [all...] |
| /llvm-project/llvm/test/Assembler/ |
| H A D | memory-attribute.ll | 3 ; CHECK: Function Attrs: memory(none) 7 ; CHECK: Function Attrs: memory(read) 11 ; CHECK: Function Attrs: memory(write) 15 ; CHECK: Function Attrs: memory(readwrite) 19 ; CHECK: Function Attrs: memory(argmem: read) 23 ; CHECK: Function Attrs: memory(argmem: write) 27 ; CHECK: Function Attrs: memory(argmem: readwrite) 31 ; CHECK: Function Attrs: memory(inaccessiblemem: read) 35 ; CHECK: Function Attrs: memory(inaccessiblemem: write) 39 ; CHECK: Function Attrs: memory(inaccessiblemem: readwrite) [all …]
|