Home
last modified time | relevance | path

Searched full:operation (Results 1 – 25 of 3899) sorted by relevance

12345678910>>...156

/llvm-project/clang-tools-extra/clangd/quality/model/
H A Dforest.json3 "operation": "if_member", string
9 "operation": "if_member", string
18 "operation": "if_greater", string
22 "operation": "boost", string
26 "operation": "if_greater", string
30 "operation": "boost", string
34 "operation": "if_greater", string
38 "operation": "if_greater", string
42 "operation": "boost", string
46 "operation": "boost", string
[all …]
/llvm-project/mlir/test/IR/
H A Dvisitors.mlir36 // CHECK: Visiting block ^bb0 from region 0 from operation 'builtin.module'
37 // CHECK: Visiting block ^bb0 from region 0 from operation 'func.func'
38 // CHECK: Visiting block ^bb0 from region 0 from operation 'scf.for'
39 // CHECK: Visiting block ^bb0 from region 0 from operation 'scf.if'
40 // CHECK: Visiting block ^bb0 from region 1 from operation 'scf.if'
43 // CHECK: Visiting region 0 from operation 'builtin.module'
44 // CHECK: Visiting region 0 from operation 'func.func'
45 // CHECK: Visiting region 0 from operation 'scf.for'
46 // CHECK: Visiting region 0 from operation 'scf.if'
47 // CHECK: Visiting region 1 from operation 'scf.if'
[all …]
/llvm-project/mlir/include/mlir/IR/
H A DSymbolTable.h22 /// this SymbolTable will also insert and erase from the Operation given to it
26 /// Build a symbol table with the symbols within the given operation.
27 SymbolTable(Operation *symbolTableOp);
31 Operation *lookup(StringRef name) const;
39 Operation *lookup(StringAttr name) const;
46 void remove(Operation *op);
48 /// Erase the given symbol from the table and delete the operation.
49 void erase(Operation *symbol);
53 /// associated operation if it is not already there. It is asserted that the
54 /// symbol is not inside another operation. Return the name of the symbol
[all …]
H A DOperation.h1 //===- Operation.h - MLIR Operation Class -----------------------*- C++ -*-===//
9 // This file defines the Operation class.
31 /// Operation is the basic unit of execution within MLIR.
37 /// An Operation is defined first by its name, which is a unique string. The
39 /// is the dialect name this operation belongs to, and everything that follows
40 /// is this operation name within the dialect.
42 /// An Operation defines zero or more SSA `Value` that we refer to as the
43 /// Operation results. This array of Value is actually stored in memory before
44 /// the Operation itsel
627 friend Operation; global() variable
[all...]
H A DVisitors.h22 class Operation; variable
30 /// * Skip: the walk of the current operation, region or block and their
32 /// continue with the next operation, region or block.
61 /// Traversal order for region, block and operation walk utilities.
67 static MutableArrayRef<Region> makeIterable(Operation &range);
77 /// When walking an operation, we can either choose a Pre/Post order walker
78 /// which invokes the callback on an operation before/after all its attached
80 /// is invoked on the operation N+1 times where N is the number of regions
81 /// attached to that operation. The `WalkStage` class below encodes the current
85 /// the callback operates on an operation (i.e., not applicable for callbacks
[all …]
H A DOpDefinition.h24 #include "mlir/IR/Operation.h"
62 /// Insert an operation, generated by `buildTerminatorOp`, at the end of the
65 /// terminator operation to insert.
68 function_ref<Operation *(OpBuilder &, Location)> buildTerminatorOp);
71 function_ref<Operation *(OpBuilder &, Location)> buildTerminatorOp);
76 /// Operation.
79 /// Traits to detect whether an Operation defined a `Properties` type, otherwise
90 /// This is the concrete base class that holds the operation pointer and has
101 /// This implicitly converts to Operation*.
102 operator Operation *() cons
[all...]
/llvm-project/mlir/lib/IR/
H A DOperation.cpp1 //===- Operation.cpp - Operation support code -----------------------------===//
9 #include "mlir/IR/Operation.h"
30 // Operation
33 /// Create a new Operation from operation state.
34 Operation *Operation::create(const OperationState &state) { in create()
35 Operation *op = in create()
50 /// Create a new Operation wit
155 Operation::Operation(Location location, OperationName name, unsigned numResults, Operation() function in Operation
[all...]
H A DSymbolTable.cpp20 /// Return true if the given operation is unknown and may potentially define a
22 static bool isPotentiallyUnknownSymbolTable(Operation *op) { in isPotentiallyUnknownSymbolTable()
28 static StringAttr getNameIfSymbol(Operation *op) { in getNameIfSymbol()
31 static StringAttr getNameIfSymbol(Operation *op, StringAttr symbolAttrNameId) { in getNameIfSymbol()
37 /// to the given operation 'within', where 'within' is an ancestor of 'symbol'.
40 collectValidReferencesFor(Operation *symbol, StringAttr symbolName, in collectValidReferencesFor()
41 Operation *within, in collectValidReferencesFor()
50 Operation *symbolTableOp = symbol->getParentOp(); in collectValidReferencesFor()
82 function_ref<std::optional<WalkResult>(Operation *)> callback) { in walkSymbolTable()
85 for (Operation in walkSymbolTable()
359 walkSymbolTables(Operation * op,bool allSymUsesVisible,function_ref<void (Operation *,bool)> callback) walkSymbolTables() argument
413 lookupSymbolInImpl(Operation * symbolTableOp,SymbolRefAttr symbol,SmallVectorImpl<Operation * > & symbols,function_ref<Operation * (Operation *,StringAttr)> lookupSymbolFn) lookupSymbolInImpl() argument
[all...]
/llvm-project/flang/runtime/
H A Dreduce.cpp21 using Operation = std::conditional_t<isByValue, ValueReductionOperation<T>, typedef in Fortran::runtime::ReduceAccumulator
23 RT_API_ATTRS ReduceAccumulator(const Descriptor &array, Operation operation, in ReduceAccumulator() argument
25 : array_{array}, operation_{operation}, identity_{identity}, in ReduceAccumulator()
56 Operation operation_;
64 RT_API_ATTRS BufferedReduceAccumulator(const Descriptor &array, OP operation, in BufferedReduceAccumulator() argument
66 : array_{array}, operation_{operation}, identity_{identity}, in BufferedReduceAccumulator()
113 ReferenceReductionOperation<std::int8_t> operation, const char *source, in RTDEF()
120 array, operation, identity, terminator}, in RTDEF()
124 ValueReductionOperation<std::int8_t> operation, cons in RTDEF()
[all...]
/llvm-project/mlir/test/Dialect/PDL/
H A Dops.mlir7 // Operation with attributes and results.
10 %op0 = operation {"attr" = %attribute} -> (%type : !pdl.type)
13 // Operation with input.
15 %root = operation(%op0_result, %input : !pdl.value, !pdl.value)
23 %root = operation(%input : !pdl.value)
33 %op1 = operation(%input1 : !pdl.value) -> (%type : !pdl.type)
35 %root1 = operation(%val1 : !pdl.value)
36 %op2 = operation(%input2 : !pdl.value) -> (%type : !pdl.type)
38 %root2 = operation(%val1, %val2 : !pdl.value, !pdl.value)
39 rewrite with "rewriter"(%root1, %root2 : !pdl.operation, !pdl.operation)
[all …]
/llvm-project/mlir/utils/tree-sitter-mlir/dialect/
H A Darith.js5 // operation ::= `arith.constant` attr-dict $value
10 // operation ::= `arith.addi` $lhs `,` $rhs attr-dict `:`
11 // type($result) operation ::= `arith.subi` $lhs `,` $rhs
12 // attr-dict `:` type($result) operation ::= `arith.divsi`
13 // $lhs `,` $rhs attr-dict `:` type($result) operation ::=
15 // operation ::= `arith.ceildivsi` $lhs `,` $rhs attr-dict
16 // `:` type($result) operation ::= `arith.ceildivui` $lhs
17 // `,` $rhs attr-dict `:` type($result) operation ::=
19 // type($result) operation ::= `arith.remsi` $lhs `,` $rhs
20 // attr-dict `:` type($result) operation ::= `arith.remui`
[all …]
H A Dmath.js5 // operation ::= `math.absf` $operand (`fastmath` ``
8 // operation ::= `math.atan` $operand (`fastmath` ``
11 // operation ::= `math.cbrt` $operand (`fastmath` ``
14 // operation ::= `math.ceil` $operand (`fastmath` ``
17 // operation ::= `math.cos` $operand (`fastmath` ``
20 // operation ::= `math.erf` $operand (`fastmath` ``
23 // operation ::= `math.exp` $operand (`fastmath` ``
26 // operation ::= `math.exp2` $operand (`fastmath` ``
29 // operation ::= `math.expm1` $operand (`fastmath` ``
32 // operation ::= `math.floor` $operand (`fastmath` ``
[all …]
/llvm-project/mlir/lib/Interfaces/
H A DSideEffectInterfaces.cpp36 bool mlir::isOpTriviallyDead(Operation *op) { in isOpTriviallyDead()
44 static bool wouldOpBeTriviallyDeadImpl(Operation *rootOp) { in wouldOpBeTriviallyDeadImpl()
45 // The set of operation intervals (end-exclusive) to consider when checking in wouldOpBeTriviallyDeadImpl()
56 mlir::Operation *op = &*(it++); in wouldOpBeTriviallyDeadImpl()
58 // If the operation has recursive effects, push all of the nested operations in wouldOpBeTriviallyDeadImpl()
88 // of the operation. in wouldOpBeTriviallyDeadImpl()
99 // operation itself as having no effects. We will visit its children next. in wouldOpBeTriviallyDeadImpl()
114 bool mlir::hasSingleEffect(Operation *op) { in hasSingleEffect()
130 template bool mlir::hasSingleEffect<MemoryEffects::Allocate>(Operation *); in hasSingleEffect()
131 template bool mlir::hasSingleEffect<MemoryEffects::Free>(Operation *); in hasSingleEffect()
[all...]
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DBufferizableOpInterfaceImpl.cpp19 #include "mlir/IR/Operation.h"
32 LogicalResult bufferize(Operation *op, RewriterBase &rewriter, in bufferize()
42 bool bufferizesToAllocation(Operation *op, Value value) const { return true; } in bufferizesToAllocation()
44 bool bufferizesToMemoryRead(Operation *op, OpOperand &opOperand, in bufferizesToMemoryRead()
49 bool bufferizesToMemoryWrite(Operation *op, OpOperand &opOperand, in bufferizesToMemoryWrite()
54 AliasingValueList getAliasingValues(Operation *op, OpOperand &opOperand, in getAliasingValues()
59 bool isWritable(Operation *op, Value value, in isWritable()
67 bool bufferizesToAllocation(Operation *op, Value value) const { in bufferizesToAllocation()
73 bool bufferizesToMemoryRead(Operation *op, OpOperand &opOperand, in bufferizesToMemoryRead()
78 bool bufferizesToMemoryWrite(Operation *op, OpOperand &opOperand, in bufferizesToMemoryWrite()
[all …]
/llvm-project/mlir/utils/tree-sitter-mlir/test/corpus/
H A Dcontrolflow.txt17 // directly from its defining operation and is not passed through
29 (operation
59 (operation
70 (operation
83 (operation
93 (operation
115 (operation
140 (operation
150 (operation
179 (operation
[all …]
/llvm-project/mlir/include/mlir/Dialect/EmitC/IR/
H A DEmitC.td60 let summary = "Addition operation";
62 With the `emitc.add` operation the arithmetic operator + (addition) can
68 // Custom form of the addition operation.
83 let summary = "Apply operation";
85 With the `emitc.apply` operation the operators & (address of) and * (contents of)
94 // Generic form of the same operation.
112 let summary = "Bitwise and operation";
114 With the `emitc.bitwise_and` operation the bitwise operator & (and) can
123 // Code emitted for the operation above.
131 let summary = "Bitwise left shift operation";
[all...]
/llvm-project/mlir/test/Conversion/PDLToPDLInterp/
H A Dpdl-to-pdl-interp-matcher.mlir5 // CHECK: func @matcher(%{{.*}}: !pdl.operation)
13 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
26 // CHECK: func @pdl_generated_rewriter(%[[REWRITE_ROOT:.*]]: !pdl.operation)
30 %root = operation "foo.op"
39 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
54 %root = operation {"attr" = %attr, "attr1" = %attr1}
63 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
72 %root = operation(%input0, %input1 : !pdl.value, !pdl.value)
84 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
86 …rd_match @rewriters::@pdl_generated_rewriter(%[[ROOT]], %[[ATTR]] : !pdl.operation, !pdl.attribute)
[all …]
/llvm-project/mlir/lib/Transforms/
H A DCSE.cpp36 struct SimpleOperationInfo : public llvm::DenseMapInfo<Operation *> {
37 static unsigned getHashValue(const Operation *opC) { in getHashValue()
39 const_cast<Operation *>(opC), in getHashValue()
44 static bool isEqual(const Operation *lhsC, const Operation *rhsC) { in isEqual()
45 auto *lhs = const_cast<Operation *>(lhsC); in isEqual()
46 auto *rhs = const_cast<Operation *>(rhsC); in isEqual()
53 const_cast<Operation *>(lhsC), const_cast<Operation *>(rhsC), in isEqual()
67 void simplify(Operation *op, bool *changed = nullptr);
73 /// Shared implementation of operation elimination and scoped map definitions.
76 llvm::ScopedHashTableVal<Operation *, Operation *>>;
[all …]
/llvm-project/llvm/include/llvm/Support/
H A DSMTAPI.h196 /// Creates a bitvector addition operation
199 /// Creates a bitvector subtraction operation
202 /// Creates a bitvector multiplication operation
205 /// Creates a bitvector signed modulus operation
208 /// Creates a bitvector unsigned modulus operation
211 /// Creates a bitvector signed division operation
214 /// Creates a bitvector unsigned division operation
217 /// Creates a bitvector logical shift left operation
220 /// Creates a bitvector arithmetic shift right operation
223 /// Creates a bitvector logical shift right operation
[all …]
/llvm-project/mlir/include/mlir/Dialect/Linalg/TransformOps/
H A DLinalgMatchOps.td29 "Matches a structured (linalg) operation with additional conditions";
31 Checks if the payload operation associated with the operand handle is a
32 structured operation, that is, an operation that implements
34 operation are satisfied. Produces a silenceable failure if the payload
35 operation is not structured.
40 silenceable failures are forwarded as the result of this operation. If it is
41 "suppress", they are ignored and this operation immediately succeeds.
44 In case of success, the transform values produced by this operation are
48 operation tha
[all...]
/llvm-project/libc/utils/MPFRWrapper/
H A DMPFRUtils.cpp25 unary_operation(Operation op, InputType input, unsigned int precision,
29 case Operation::Abs:
31 case Operation::Acos:
33 case Operation::Acosh:
35 case Operation::Asin:
37 case Operation::Asinh:
39 case Operation::Atan:
41 case Operation::Atanh:
43 case Operation::Cbrt:
45 case Operation
[all...]
/llvm-project/llvm/docs/DirectX/
H A DDXILOpTableGenDesign.rst34 1. Name of operation (``dxil_op``)
35 2. A string that documents the operation (``doc``) - This is not strictly necessary but is included
36 for readability and documentation of the operation.
37 3. The generic or HLSL-specific intrinsic that maps to the operation (``llvm_name``).
39 5. Operation Class signifying the name and function signature of the operation (``dxil_class``).
43 6. List of valid overload types for the operation (``oload_types``).
44 7. Required DXIL Version with support for the operation.
48 11. Memory access attributes of the operation (``fn_attr``).
49 12. Boolean attributes of operation t
[all...]
/llvm-project/mlir/test/mlir-tblgen/
H A Dopenmp-ops.td1 // Tablegen tests for the automatic population of OpenMP dialect operation
129 // Clause-based operation definitions.
133 let summary = "operation with clauses - arguments added";
135 Description of operation with clauses - arguments added.
153 // DOC: operation ::= `omp.op_add_arguments`
161 // DOC: Description of operation with clauses - arguments added.
168 let summary = "operation with optional clause";
170 Description of operation with optional clause.
180 // DOC: operation ::= `omp.op_with_opt`
185 // DOC: Description of operation wit
[all...]
/llvm-project/mlir/lib/Analysis/
H A DLiveness.cpp15 #include "mlir/IR/Operation.h"
40 for (Operation *useOp : value.getUsers()) { in BlockInfoBuilder()
63 for (Operation &operation : *block) in BlockInfoBuilder()
64 for (Value result : operation.getResults()) in BlockInfoBuilder()
67 // Mark all nested operation results as defined, and nested operation in BlockInfoBuilder()
70 block->walk([&](Operation *op) { in BlockInfoBuilder()
129 static void buildBlockMapping(Operation *operation, in buildBlockMapping() argument
133 operation->walk<WalkOrder::PreOrder>([&](Block *block) { in buildBlockMapping()
161 Liveness::Liveness(Operation *op) : operation(op) { build(); } in Liveness()
167 buildBlockMapping(operation, builders); in build()
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dnull_in_arithmetic_ops.cpp14 a = 0 ? NULL + a : a + NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
15 a = 0 ? NULL - a : a - NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
16 a = 0 ? NULL / a : a / NULL; // expected-warning 2{{use of NULL in arithmetic operation}} \ in f()
18 a = 0 ? NULL * a : a * NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
19 a = 0 ? NULL >> a : a >> NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
20 a = 0 ? NULL << a : a << NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
21 a = 0 ? NULL % a : a % NULL; // expected-warning 2{{use of NULL in arithmetic operation}} \ in f()
23 a = 0 ? NULL & a : a & NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
24 a = 0 ? NULL | a : a | NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
25 a = 0 ? NULL ^ a : a ^ NULL; // expected-warning 2{{use of NULL in arithmetic operation}} in f()
[all …]

12345678910>>...156