diff options
author | raoanag <127366241+raoanag@users.noreply.github.com> | 2025-07-16 11:28:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 11:28:55 -0700 |
commit | 056f0a10b320fc2fd75f46aa67d68708303d89ad (patch) | |
tree | 5a2c5c4f6f87097cc4cfd56daeb464ea89c9df06 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 22994edb5fd71198c48670255c979fcc962930a1 (diff) | |
download | llvm-056f0a10b320fc2fd75f46aa67d68708303d89ad.zip llvm-056f0a10b320fc2fd75f46aa67d68708303d89ad.tar.gz llvm-056f0a10b320fc2fd75f46aa67d68708303d89ad.tar.bz2 |
[HLSL][DXIL] Implement `refract` intrinsic (#147342)
- [x] Implement refract using HLSL source in hlsl_intrinsics.h
- [x] Implement the refract SPIR-V target built-in in
clang/include/clang/Basic/BuiltinsSPIRV.td
- [x] Add sema checks for refract to CheckSPIRVBuiltinFunctionCall in
clang/lib/Sema/SemaSPIRV.cpp
- [x] Add codegen for spv refract to EmitSPIRVBuiltinExpr in
CGBuiltin.cpp
- [x] Add codegen tests to clang/test/CodeGenHLSL/builtins/refract.hlsl
- [x] Add spv codegen test to clang/test/CodeGenSPIRV/Builtins/refract.c
- [x] Add sema tests to clang/test/SemaHLSL/BuiltIns/refract-errors.hlsl
- [x] Add spv sema tests to
clang/test/SemaSPIRV/BuiltIns/refract-errors.c
- [x] Create the int_spv_refract intrinsic in IntrinsicsSPIRV.td
- [x] In SPIRVInstructionSelector.cpp create the refract lowering and
map it to int_spv_refract in SPIRVInstructionSelector::selectIntrinsic.
- [x] Create SPIR-V backend test case in
llvm/test/CodeGen/SPIRV/hlsl-intrinsics/refract.ll
- [x] Check for what OpenCL support is needed.
Resolves https://github.com/llvm/llvm-project/issues/99153
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions