aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorSarah Spall <sarahspall@microsoft.com>2025-10-16 11:28:13 -0700
committerGitHub <noreply@github.com>2025-10-16 11:28:13 -0700
commit8ebbb20dffe2b3bbe43a21faacaa7b5e208b1e40 (patch)
treee7fc6d04436304b443f76748bd56f43fe96fd258 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parenta0b66b56c182a6fb23f369291079b6aee1a5814e (diff)
downloadllvm-8ebbb20dffe2b3bbe43a21faacaa7b5e208b1e40.zip
llvm-8ebbb20dffe2b3bbe43a21faacaa7b5e208b1e40.tar.gz
llvm-8ebbb20dffe2b3bbe43a21faacaa7b5e208b1e40.tar.bz2
[HLSL] Add an lvalue to rvalue cast when appropriate for HLSLElementwiseCast and HLSLAggregateSplatCast (#163828)
When the Sub expression of an HLSLAggregateSplatCast is an LValue insert an LValue to RValue cast; done using DefaultLvalueConversion. When the Sub expression of an HLSLElementwiseCast is an LValue and not a record or an array insert an LValue to RValue cast. Arrays were already handled correctly using an HLSLArrayRValue cast. DefaultLvalueConversion is used to add the LValue to RValue cast when appropriate and does not emit one when the expression is a record. Update existing test which was broken by this change. Add two new tests for HLSLElementwiseCast showing the lack of lvalue to rvalue cast for a struct and showing the lvalue to rvalue cast for a vector. Closes #163593
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions