aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Object/ELFObjectFileTest.cpp
diff options
context:
space:
mode:
authorFinn Plummer <mail@inbelic.dev>2025-10-29 11:54:18 -0700
committerGitHub <noreply@github.com>2025-10-29 11:54:18 -0700
commit032900eb3011a6d0e8ca0de7692b1c25409e7398 (patch)
tree2351d1050060f7b3e319a0e3fee1ecf7d6f54660 /llvm/unittests/Object/ELFObjectFileTest.cpp
parentb17f1fd6766a5b36b06df734ee577f7dae9cb964 (diff)
downloadllvm-032900eb3011a6d0e8ca0de7692b1c25409e7398.zip
llvm-032900eb3011a6d0e8ca0de7692b1c25409e7398.tar.gz
llvm-032900eb3011a6d0e8ca0de7692b1c25409e7398.tar.bz2
[DirectX] Add DXIL validation of `llvm.loop` metadata (#164292)
This pr adds the equivalent validation of `llvm.loop` metadata that is [done in DXC](https://github.com/microsoft/DirectXShaderCompiler/blob/8f21027f2ad5dcfa63a275cbd278691f2c8fad33/lib/DxilValidation/DxilValidation.cpp#L3010). This is done as follows: - Add `llvm.loop` to the metadata allow-list in `DXILTranslateMetadata` - Iterate through all `llvm.loop` metadata nodes and strip all incompatible ones - Raise an error for ill-formed nodes that are compatible with DXIL Resolves: https://github.com/llvm/llvm-project/issues/137387
Diffstat (limited to 'llvm/unittests/Object/ELFObjectFileTest.cpp')
0 files changed, 0 insertions, 0 deletions