| commit | 27b3b4a665f144b968a04502e5461ab8d1cd1471 | [log] [tgz] |
|---|---|---|
| author | Deric C. <cheung.deric@gmail.com> | Mon Jul 14 18:13:42 2025 -0700 |
| committer | GitHub <noreply@github.com> | Mon Jul 14 18:13:42 2025 -0700 |
| tree | c79a23b0448fa335e71994362faa84ba5febf93c | |
| parent | 7ba0c98265977651540c64795b244166af329ca8 [diff] |
[DirectX] Move the scalarizer pass to before dxil-flatten-arrays (#146800) Fixes #145924 and #140416 Depends on #146173 being merged first. This PR moves the scalarizer pass to immediately before the dxil-flatten-arrays pass to allow the dxil-flatten-arrays pass to turn scalar GEPs (including i8 GEPs) into flattened array GEPs where applicable. A number of LLVM DirectX CodeGen tests have been edited to remove scalar GEPs and also correct previously uncaught incorrectly-transformed GEPs. No more validation errors of the form `Access to out-of-bounds memory is disallowed` or `TGSM pointers must originate from an unambiguous TGSM global variable` appear anymore after this PR when compiling DML shaders.
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.