aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLuke Hutton <luke.hutton@arm.com>2025-10-06 13:14:34 +0100
committerGitHub <noreply@github.com>2025-10-06 13:14:34 +0100
commitfee71a3474ed09eb06a0d2c10edad376cab61ced (patch)
tree8b91213b8a50ddeee0d16a95c1a87528582ebc24 /clang/lib/CodeGen/CodeGenFunction.cpp
parent5e07093917fa84b3ee9d09189a34a0c750f68cb7 (diff)
downloadllvm-fee71a3474ed09eb06a0d2c10edad376cab61ced.zip
llvm-fee71a3474ed09eb06a0d2c10edad376cab61ced.tar.gz
llvm-fee71a3474ed09eb06a0d2c10edad376cab61ced.tar.bz2
[mlir][tosa] Apply 'Symbol' trait to `tosa.variable` (#153223)
Implement SymbolOpInterface on tosa.variable so that it's declaration is automatically inserted into its parents SymbolTable. Verifiers for tosa.variable_read/write can now look up the symbol and guarantee it exists, and duplicate names are caught at creation time. Previously this was completed by walking the graph which could be inefficient. Unfortunately, the Symbol trait expects to find a symbol name via a hard-coded attribute name "sym_name". Therefore, "name" is renamed to"sym_name" and a getName() wrapper is provided for backwards compatibility. This change also restricts tosa.variable declarations to ops that carry a SymbolTable (e.g. modules), rather than allowing them to be placed inside a func.func. Note: EXT-VARIABLE is an experimental extension in the TOSA specification, so is not subject to backwards compatibility guarantees.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions