aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-04-17 11:11:00 +0200
committerGitHub <noreply@github.com>2025-04-17 11:11:00 +0200
commitc3c0b27f2d34cd106df278afc378c30fe493f513 (patch)
tree2e7c6d6b74f588fb706b2f72b0965c90873ce25f /clang/lib/AST/ByteCode/Compiler.cpp
parentbd49bbaaafc98433a2cb4e95ce25b7a201baf5a5 (diff)
downloadllvm-c3c0b27f2d34cd106df278afc378c30fe493f513.zip
llvm-c3c0b27f2d34cd106df278afc378c30fe493f513.tar.gz
llvm-c3c0b27f2d34cd106df278afc378c30fe493f513.tar.bz2
[Intrinsics] Add support for range attributes (#135642)
Add support for specifying range attributes in Intrinsics.td. Use this to specify the ucmp/scmp range [-1,2). This case is trickier than existing intrinsic attributes, because we need to create the attribute with the correct bitwidth. As such, the attribute construction now needs to be aware of the function type. We also need to be careful to no longer assign attributes on intrinsics with invalid signatures, as we'd make invalid assumptions about the number of arguments etc otherwise. Fixes https://github.com/llvm/llvm-project/issues/130179.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions