Added builtins for the interpolation intrinsics, and related LIT
test.
Details
- Reviewers
arsenm tpr dstuttard - Group Reviewers
Restricted Project - Commits
- rG6d5348cca557: [AMDGPU] Add interpolation builtins
rL352358: [AMDGPU] Add interpolation builtins
rC352358: [AMDGPU] Add interpolation builtins
Diff Detail
- Repository
- rC Clang
Event Timeline
include/clang/Basic/BuiltinsAMDGPU.def | ||
---|---|---|
111–115 | Can you expand on that please, I don't know what needs to be done here? | |
test/CodeGenOpenCL/builtins-amdgcn-interp.cl | ||
3–29 | Checking the IR doesn't allow you to check the behavior very well, as there are differences depending on the target-cpu which are not apparent in the IR. |
include/clang/Basic/BuiltinsAMDGPU.def | ||
---|---|---|
111–115 | In the other review I commented you should change the existing intrinsics to use name mangling instead of adding a second set. Once you do that, GCCBuiltin no longer works. You have to add some code like the other type mangled intrinsics in lib/CodeGen/CGBuiltin.cpp | |
test/CodeGenOpenCL/builtins-amdgcn-interp.cl | ||
3–29 | That is a codegen test which we have (or should have) in the backend. I know we have some for the f32 variants. Clang tests should only be checking that the produced IR is correct |
[AMDGPU] Add interpolation builtins
Updated LIT test so that it only tests for the existence of the builtins
by checking the IR.
You will also need C++ handling for these when the intrinsics are fixed to use name mangling