| commit | d219467cd8a6ca9e5f011ca8fcbaaca51a992409 | [log] [tgz] |
|---|---|---|
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | Mon Sep 08 23:44:47 2025 +0900 |
| committer | GitHub <noreply@github.com> | Mon Sep 08 23:44:47 2025 +0900 |
| tree | 7c5aa0e5fd3d1beaa7ba08abaee151562b6a5741 | |
| parent | 344708c2a3de005060242a77ccfea753406af8d0 [diff] |
Sparc: Add 64-bit feature (#157445) Add a 64-bit feature so a subtarget feature check can tell the pointer size, for future use with HwMode. This is kind of a hack, but this is closer to what other targets do. To use HwModes, there needs to be a subtarget feature. Every other target kludges the module level properties into a subtarget feature for use here, which requires pre/post processing the subtarget features. The APIs for this aren't great. I tried doing something different, closer to what hexagon does, rather than what x86 does to see if it was any nicer. It almost is, except for some reason we don't have an API to directly set a bit in the FeatureBitset. Also the test coverage for the different ABI options isn't great. e.g. v9 as a feature almost works, except a single test breaks that uses a sparc32 triple with an explicit v9 feature.
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.