diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2024-09-25 04:50:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 04:50:09 -0700 |
commit | 1c984b86b389bbc71c8c2988d1d707e2f32878bd (patch) | |
tree | 45a3590f56dc64512fce2715f1f62a05f76bbdbc /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 786dc5a2da9bb55d98c65d018de25d9bd31485ff (diff) | |
download | llvm-1c984b86b389bbc71c8c2988d1d707e2f32878bd.zip llvm-1c984b86b389bbc71c8c2988d1d707e2f32878bd.tar.gz llvm-1c984b86b389bbc71c8c2988d1d707e2f32878bd.tar.bz2 |
[LLVM][TableGen] Adopt !listflatten for Intrinsic type signature (#109884)
Intrinisc type signature is a `list<list<int>>` that hold IIT encoding
for each param/ret type (outer list) where the IIT encoding for each
type itself can be 0 or more integers (the inner list). Intrinsic
emitter flatten this list into generate the type signature in
`ComputeTypeSignature`.
Use the new !listflatten() operator to instead flatten the list in the
TableGen definition and eliminate flattening in the emitter code.
Verified that `-gen-intrinsic-impl` output for Intrinsics.td is
identical with and without the change.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions