diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2025-07-04 17:15:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-04 17:15:11 +0200 |
commit | a4f31ccfa0efd610589d5e474daaeca1e0159807 (patch) | |
tree | 1632c92ba3f1dfc47aada41e9afed1343c74df13 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | a1789497f9f5fa081b3b3413d7e327d98fd66426 (diff) | |
download | llvm-a4f31ccfa0efd610589d5e474daaeca1e0159807.zip llvm-a4f31ccfa0efd610589d5e474daaeca1e0159807.tar.gz llvm-a4f31ccfa0efd610589d5e474daaeca1e0159807.tar.bz2 |
[mlir-tblgen] Emit named operand indices (#146839)
An operation's operands are defined by the `arguments` field in the
tablegen definition. mlir-tblgen generates accessors for them:
`getXYZ()` and `setXYZ(...)` to set an operation's operands without
knowing the operand's index, but it does not expose the operand index
itself. Yet some use cases requires knowing the operand index that is
now covered by just getters and setters. For instance:
* Given an `mlir::OpOperand`, find out whether it is a specific argument
(from the `arguments` field in the `.td` file)
* For operation with variable number of operands (variadic,
`AttrSizedOperandSegments`), get the value to pass to `getODSOperands`
or `getODSOperandIndexAndLength`.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions