aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2025-03-16 21:20:36 +0100
committerGitHub <noreply@github.com>2025-03-16 21:20:36 +0100
commit3e6f618e86f5fbad2c2d5802416ec3d3366a2837 (patch)
tree758e815a1a2643121bb4a3c5caaa747229ef8869 /llvm/lib/CodeGen/CodeGen.cpp
parent40b703421377fbc0f72a7f028d1d56a057d8448e (diff)
downloadllvm-3e6f618e86f5fbad2c2d5802416ec3d3366a2837.zip
llvm-3e6f618e86f5fbad2c2d5802416ec3d3366a2837.tar.gz
llvm-3e6f618e86f5fbad2c2d5802416ec3d3366a2837.tar.bz2
[llvm][ADT] Add `getSingleElement` helper (#131508)
This commit adds a new helper function: `getSingleElement` This function asserts that the container has a single element and then returns that element. This helper function is useful during 1:N dialect conversions in MLIR, where certain `ValueRange`s (returned from the adaptor) are known to have a single value.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions