aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLuke Hutton <luke.hutton@arm.com>2025-10-07 10:31:08 +0100
committerGitHub <noreply@github.com>2025-10-07 10:31:08 +0100
commit16ad97eed36605d974b11f018beb935295972354 (patch)
tree54d4e1182be13194bf76b25cefe828de102a9628 /clang/lib/CodeGen/CodeGenFunction.cpp
parentfddd1b60fdf0451a42ba916e63423406d1e76798 (diff)
downloadllvm-16ad97eed36605d974b11f018beb935295972354.zip
llvm-16ad97eed36605d974b11f018beb935295972354.tar.gz
llvm-16ad97eed36605d974b11f018beb935295972354.tar.bz2
[mlir][tosa] Add the concept of a TOSA target environment (#153771)
This commit introduces a new module-level attribute `tosa.target_env`. It encapsulates target information for use during compilation such as: level, profiles and extensions. For example: ```mlir module attributes {tosa.target_env = #tosa.target_env<level = none, profiles = [pro_int], extensions = [int16, int4]>} { <my-tosa-program> } ``` Previously the validation pass accepted target information as a series of command line pass options. This commit changes the behaviour to query the attached target environment from the module attribute. This refactoring allows other passes to query the same target information. A new target environment can be attached using the `--tosa-attach-target` pass, which takes the same command line options as the previous validation pass arguments. For example: ```bash mlir-opt --tosa-attach-target="profiles=pro_int extensions=int4,int16 level=none" test.mlir ```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions