| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | STLFunctionalExtras.h | 40 Ret (*callback)(intptr_t callable, Params ...params) = nullptr; 41 intptr_t callable; variable 44 static Ret callback_fn(intptr_t callable, Params ...params) { in callback_fn() argument 45 return (*reinterpret_cast<Callable*>(callable))( in callback_fn() 55 Callable &&callable, 65 callable(reinterpret_cast<intptr_t>(&callable)) {} in callback() 68 return callback(callable, std::forward<Params>(params)...); in operator()
|
| /llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/ |
| H A D | DeadCodeAnalysis.cpp | 127 Region *callableRegion = callable.getCallableRegion(); in initializeSymbolCallables() 137 auto *state = getOrCreate<PredecessorState>(callable); in initializeSymbolCallables() 153 return top->walk([&](CallableOpInterface callable) { in initializeSymbolCallables() argument 154 auto *state = getOrCreate<PredecessorState>(callable); in initializeSymbolCallables() 239 } else if (auto callable = dyn_cast<CallableOpInterface>(op)) { in visit() local 246 markEntryBlocksLive(callable); in visit() 258 } else if (auto callable = in visit() local 261 visitCallableTerminator(op, callable); in visit() 289 if (auto callable = dyn_cast<CallableOpInterface>(op)) in visitCallOperation() local 290 return !callable.getCallableRegion(); in visitCallOperation() [all …]
|
| H A D | DenseAnalysis.cpp | 101 auto callable = dyn_cast<CallableOpInterface>(block->getParentOp()); in visitBlock() local 102 if (callable && callable.getCallableRegion() == block->getParent()) { in visitBlock() 103 const auto *callsites = getOrCreateFor<PredecessorState>(block, callable); in visitBlock()
|
| H A D | SparseAnalysis.cpp | 163 auto callable = dyn_cast<CallableOpInterface>(block->getParentOp()); in visitBlock() local 164 if (callable && callable.getCallableRegion() == block->getParent()) { in visitBlock() 165 const auto *callsites = getOrCreateFor<PredecessorState>(block, callable); in visitBlock()
|
| /llvm-project-15.0.7/mlir/test/Transforms/ |
| H A D | sccp-callgraph.mlir | 110 // CHECK: %[[CALL:.*]]:2 = call @callable 118 "live.user"() {uses = [@callable]} : () -> () 130 // CHECK: %[[CALL:.*]] = call @callable 134 %result = call @callable(%1) : (i32) -> i32 148 // CHECK: %[[CALL1:.*]] = call @callable 149 // CHECK: %[[CALL2:.*]] = call @callable 154 %result = call @callable(%1) : (i32) -> i32 155 %result2 = call @callable(%2) : (i32) -> i32 170 // CHECK: %[[CALL1:.*]] = call @callable 171 // CHECK: %[[CALL2:.*]] = call @callable [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | CallInterfaces.td | 10 // related to call-like and callable operations. Each of which are defined along 20 // `CallInterfaceCallable`: This is a type used to represent a single callable 21 // region. A callable is either a symbol, or an SSA value, that is referenced by 52 /// Resolve the callable operation for given callee to a 53 /// CallableOpInterface, or nullptr if a valid callable was not resolved. 61 /// Interface for callable operations. 64 A callable operation is one who represents a potential sub-routine, and may 75 Returns the region on the current operation that is callable. This may 76 return null in the case of an external callable object, e.g. an external 82 Returns the results types that the callable region produces when
|
| /llvm-project-15.0.7/clang/test/OpenMP/ |
| H A D | amdgcn-attributes.cpp | 14 int callable(int); 24 arr[i] = callable(arr[i]); in func() 30 int callable(int x) { in callable() function
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | CallInterfaces.cpp | 23 CallInterfaceCallable callable = getCallableForCallee(); in resolveCallable() local 24 if (auto symbolVal = callable.dyn_cast<Value>()) in resolveCallable() 28 auto symbolRef = callable.get<SymbolRefAttr>(); in resolveCallable()
|
| /llvm-project-15.0.7/libcxx/utils/libcxx/test/ |
| H A D | dsl.py | 359 name = self._name(config) if callable(self._name) else self._name 379 self._getFlag = lambda config: flag(config) if callable(flag) else flag 399 self._getFlag = lambda config: flag(config) if callable(flag) else flag 418 self._getFlag = lambda config: flag(config) if callable(flag) else flag 437 self._getFlag = lambda config: flag(config) if callable(flag) else flag 456 self._getFlag = lambda config: flag(config) if callable(flag) else flag 476 self._getFlag = lambda config: flag(config) if callable(flag) else flag 497 self._getSub = lambda config: substitution(config) if callable(substitution) else substitution 548 name = self._name(config) if callable(self._name) else self._name 565 actions = self._actions(config) if callable(self._actions) else self._actions [all …]
|
| /llvm-project-15.0.7/mlir/lib/Analysis/ |
| H A D | CallGraph.cpp | 83 if (CallableOpInterface callable = dyn_cast<CallableOpInterface>(op)) { in computeCallGraph() local 84 if (auto *callableRegion = callable.getCallableRegion()) in computeCallGraph() 143 Operation *callable = call.resolveCallable(&symbolTable); in resolveCallable() local 144 if (auto callableOp = dyn_cast_or_null<CallableOpInterface>(callable)) in resolveCallable()
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | folding.cpp | 59 if (auto callable{GetHostRuntimeWrapper("log", r4, {r4})}) { in TestHostRuntimeSubnormalFlushing() local 62 Scalar<R4> y1Flushing{CallHostRt<R4>(*callable, flushingContext, x1)}; in TestHostRuntimeSubnormalFlushing() 63 Scalar<R4> y1NoFlushing{CallHostRt<R4>(*callable, noFlushingContext, x1)}; in TestHostRuntimeSubnormalFlushing()
|
| /llvm-project-15.0.7/mlir/test/Analysis/DataFlow/ |
| H A D | test-dead-code-analysis.mlir | 210 // CHECK: callable: 214 // CHECK: func.call @callable() {then} 215 func.func @callable() attributes {tag = "callable"} { 222 func.call @callable() {then} : () -> () 225 func.call @callable() {else} : () -> ()
|
| /llvm-project-15.0.7/mlir/include/mlir/Transforms/ |
| H A D | InliningUtils.h | 56 virtual bool isLegalToInline(Operation *call, Operation *callable, in isLegalToInline() argument 170 virtual bool isLegalToInline(Operation *call, Operation *callable, 243 CallableOpInterface callable, Region *src,
|
| /llvm-project-15.0.7/mlir/utils/mbr/ |
| H A D | README.md | 39 returns a callable which is accepted as an argument by the runner function. 41 1. `compiler`: configures and returns a callable. 42 2. `runner`: takes that callable in as input, sets up its arguments, and calls 45 The `compiler` callable is optional if there is no compilation step, for
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIRDialect.cpp | 26 bool isLegalToInline(mlir::Operation *call, mlir::Operation *callable, in isLegalToInline() 28 return fir::canLegallyInline(call, callable, wouldBeCloned); in isLegalToInline()
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold-real.cpp | 66 if (auto callable{GetHostRuntimeWrapper<T, T>(name)}) { in FoldIntrinsicFunction() local 68 context, std::move(funcRef), *callable); in FoldIntrinsicFunction() 79 if (auto callable{GetHostRuntimeWrapper<T, T, T>(localName)}) { in FoldIntrinsicFunction() local 81 context, std::move(funcRef), *callable); in FoldIntrinsicFunction() 90 if (auto callable{GetHostRuntimeWrapper<T, Int4, T>(name)}) { in FoldIntrinsicFunction() local 92 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
|
| H A D | fold-complex.cpp | 28 if (auto callable{GetHostRuntimeWrapper<T, T>(name)}) { in FoldIntrinsicFunction() local 30 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
|
| /llvm-project-15.0.7/mlir/lib/Transforms/Utils/ |
| H A D | InliningUtils.cpp | 60 bool InlinerInterface::isLegalToInline(Operation *call, Operation *callable, in isLegalToInline() argument 63 return handler->isLegalToInline(call, callable, wouldBeCloned); in isLegalToInline() 334 CallableOpInterface callable, Region *src, in inlineCall() argument 340 ArrayRef<Type> callableResultTypes = callable.getCallableResults(); in inlineCall() 405 if (!interface.isLegalToInline(call, callable, shouldCloneInlinedRegion)) in inlineCall()
|
| /llvm-project-15.0.7/mlir/lib/Transforms/ |
| H A D | Inliner.cpp | 140 if (auto callable = dyn_cast<CallableOpInterface>(&op)) { in CGUseList() local 141 if (auto *node = cg.lookupNode(callable.getCallableRegion())) { in CGUseList() 341 CallInterfaceCallable callable = call.getCallableForCallee(); in collectCallOps() local 342 if (SymbolRefAttr symRef = callable.dyn_cast<SymbolRefAttr>()) { in collectCallOps() 786 Operation *callable = node->getCallableRegion()->getParentOp(); in optimizeCallable() local 787 StringRef opName = callable->getName().getStringRef(); in optimizeCallable() 798 return runPipeline(pipelineIt->second, callable); in optimizeCallable()
|
| /llvm-project-15.0.7/lldb/examples/test/ |
| H A D | usage-pre-post-flight | 6 config: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>} 7 fatal error: pre_flight is not callable, exiting.
|
| H A D | .lldb-pre-post-flight.bad | 1 pre_flight = "I am not callable"
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/MLProgram/IR/ |
| H A D | MLProgramOps.td | 63 /// Returns the region on the current operation that is callable. This may 64 /// return null in the case of an external callable object, e.g. an external 70 /// Returns the results types that the callable region produces when 412 /// Returns the region on the current operation that is callable. This may 413 /// return null in the case of an external callable object, e.g. an external 417 /// Returns the results types that the callable region produces when
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/six/ |
| H A D | six.py | 548 callable = callable variable 550 def callable(obj): function 579 callable = callable variable
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/Parser/ |
| H A D | CodeComplete.h | 77 virtual void codeCompleteCallSignature(const ast::CallableDecl *callable, in codeCompleteCallSignature() argument
|
| /llvm-project-15.0.7/llvm/utils/lit/lit/ |
| H A D | worker.py | 59 if callable(pg):
|