aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2025-04-08 19:21:45 +0200
committerGitHub <noreply@github.com>2025-04-08 19:21:45 +0200
commitb7b3758e88f15a7ec27f212cd46e3dcf4e2f39f5 (patch)
treea53efa5591173c0a3e89049f7a359f11f2306c58 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parent5ebe22a35d27d69a9ba878010072588ace489035 (diff)
downloadllvm-b7b3758e88f15a7ec27f212cd46e3dcf4e2f39f5.zip
llvm-b7b3758e88f15a7ec27f212cd46e3dcf4e2f39f5.tar.gz
llvm-b7b3758e88f15a7ec27f212cd46e3dcf4e2f39f5.tar.bz2
[mlir][IR] Add `VectorTypeElementInterface` with `!llvm.ptr` (#133455)
This commit extends the MLIR vector type to support pointer-like types such as `!llvm.ptr` and `!ptr.ptr`, as indicated by the newly added `VectorTypeElementInterface`. This makes the LLVM dialect closer to LLVM IR. LLVM IR already supports pointers as vector element type. Only integers, floats, pointers and index are valid vector element types for now. Additional vector element types may be added in the future after further discussions. The interface is still evolving and may eventually turn into one of the alternatives that were discussed on the RFC. This commit also disallows `!llvm.ptr` as an element type of `!llvm.vec`. This type exists due to limitations of the MLIR vector type. RFC: https://discourse.llvm.org/t/rfc-allow-pointers-as-element-type-of-vector/85360
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
0 files changed, 0 insertions, 0 deletions