[HLSL][DXIL][SPIRV] QuadReadAcrossX intrinsic support (#184360) This PR adds QuadReadAcrossX intrinsic support in HLSL with codegen for both DirectX and SPIRV backends. Resolves https://github.com/llvm/llvm-project/issues/99175. - [x] Implement QuadReadAcrossX clang builtin - [x] Link QuadReadAcrossX clang builtin with hlsl_intrinsics.h - [x] Add sema checks for QuadReadAcrossX to CheckHLSLBuiltinFunctionCall in SemaChecking.cpp - [x] Add codegen for QuadReadAcrossX to EmitHLSLBuiltinExpr in CGBuiltin.cpp - [x] Add codegen tests to clang/test/CodeGenHLSL/builtins/QuadReadAcrossX.hlsl - [x] Add sema tests to clang/test/SemaHLSL/BuiltIns/QuadReadAcrossX-errors.hlsl - [x] Create the int_dx_QuadReadAcrossX intrinsic in IntrinsicsDirectX.td - [x] Create the DXILOpMapping of int_dx_QuadReadAcrossX to 123 in DXIL.td - [x] Create the QuadReadAcrossX.ll and QuadReadAcrossX_errors.ll tests in llvm/test/CodeGen/DirectX/ - [x] Create the int_spv_QuadReadAcrossX intrinsic in IntrinsicsSPIRV.td - [x] In SPIRVInstructionSelector.cpp create the QuadReadAcrossX lowering and map it to int_spv_QuadReadAcrossX in SPIRVInstructionSelector::selectIntrinsic. - [x] Create SPIR-V backend test case in llvm/test/CodeGen/SPIRV/hlsl-intrinsics/QuadReadAcrossX.ll
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.