| commit | 3e6ee89507878926e9746d0b2ca5db9c4ce3c061 | [log] [tgz] |
|---|---|---|
| author | Kazu Hirata <kazu@google.com> | Sun Sep 21 19:16:50 2025 -0700 |
| committer | GitHub <noreply@github.com> | Sun Sep 21 19:16:50 2025 -0700 |
| tree | 37a03088a377246a2e5d853315daf396e1ed60f8 | |
| parent | 7bf39a5585342b152888104205a11f3c0235b7a9 [diff] |
[AMDGPU] Simplify template metaprogramming in IsMCExpr##member (NFC) (#160005) Without this patch, we compute a type trait in a roundabout manner: - Compute a boolean value in the primary template. - Pass the value to std::enable_if_t. - Return std::true_type (or std::false_type on the fallback path). - Compare the return type to std::true_type. That is, when the expression for the first boolean value above is well formed, we already have the answer we are looking for. This patch bypasses the entire sequence by having the primary template return std::bool_constant and adjusting RESULT to extract the ::value of the boolean type.
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.