- Dec 16, 2022
-
-
Jay Foad authored
-
Alex Richardson authored
ASTContext was holding onto a pointer to the Clang->LLVM address space map which is stored inside TargetInfo. Instead of doing this, we can forward to TargetInfo instead. This change will allow us to eventually remove getTargetAddressSpace() from ASTContext and only have this information in TargetInfo. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D138316
-
Krasimir Georgiev authored
No functional changes intended.
-
Dani Ferreira Franco Moura authored
This change will allow users to call getNullability() without providing an ASTContext. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D140104
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
David Spickett authored
This used %zu to print a uint64_t type. z is for size_t so on 32 bit we tried to treat it as a 32 bit number. Use PRIu64 instead to print as 64 bit everywhere.
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Daniel Grumberg authored
Anonymous enums that are typedef'd should take on the name of the typedef. Differential Revision: https://reviews.llvm.org/D140010
-
David Spickett authored
a1b4e13c updated this to use the target= syntax. However the triple for our Arm bots is usually like: armv8l-unknown-linux-gnueabihf With "eabihf" on the end. I assume before we just checked for "linux-gnu" being in the triple at all but now it is a proper regex match. Add .* on the end to account for the ABI tag on the end.
-
Nikita Popov authored
-
Kevin Sala authored
This reverts commit 87e6b96b.
-
Weining Lu authored
Other targets like ARM, AArch64, RISCV and X86 have similar tests. `O1`, `O2` and `O3` appear to be the same for now. But in future, some passes may be disabled at lower levels (e.g. `O1`). Hoping we can use FileCheck prefixes for differences to avoid repeating the contents 3 times. Reviewed By: xen0n, MaskRay Differential Revision: https://reviews.llvm.org/D139499
-
Nikita Popov authored
-
Hui Li authored
Add conditional and unconditional branch instructions for loongarch64. Note that this does not include floating-point branch instructions, that will come in a later patch. Reviewed By: SixWeining, DavidSpickett Differential Revision: https://reviews.llvm.org/D139833
-
Nikita Popov authored
-
Corentin Jabot authored
Implement the proposed UAX Profile "Mathematical notation profile for default identifiers". This implements a not-yet approved Unicode for a vetted UAX31 identifier profile https://www.unicode.org/L2/L2022/22230-math-profile.pdf This change mitigates the reported disruption caused by the implementation of UAX31 in C++ and C2x, as these mathematical symbols are commonly used in the scientific community. Fixes #54732 Reviewed By: tahonermann, #clang-language-wg Differential Revision: https://reviews.llvm.org/D137051
-
Craig Topper authored
Remove else after return.
-
Jean Perier authored
Lower hlfir.apply to hlfir.designate in bufferization. Differential Revision: https://reviews.llvm.org/D140101
-
Jean Perier authored
The defining op of HLFIR variables is expected to be visible in most cases, but HLFIR codegen won't rely on it from a correctness point of view. This patch allows building a fir.shape from an hlfir::Entity does not have a visible FortranVariabeInterface defining op. Differential Revision: https://reviews.llvm.org/D140099
-
Jean Perier authored
Without any optimization or when it cannot be optimized before bufferization, an hlfir.elemental lowers to an array temporary. Its codegen consists in: - allocating a temp given the type, shape, and length parameter arguments. - generating a loop nest given the elemental shape - inlining the body of the elemental inside the loops, and replacing the yield_element by an assignment to an element of the temp. Differential Revision: https://reviews.llvm.org/D140093
-
Fangrui Song authored
-
Fangrui Song authored
Many files are from language servers. https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Fangrui Song authored
-
Fangrui Song authored
-
Tobias Gysi authored
This revision adds support to import fastmath flags from LLVMIR. It implement the import using a listener attached to the builder. The listener gets notified if an operation is created and then checks if there are fastmath flags to import from LLVM IR to the MLIR. The listener based approach allows us to perform the import without changing the mlirBuilders used to create the imported operations. An alternative solution, could be to update the builders so that they return the created operation using FailureOr<Operation*> instead of LogicalResult. However, this solution implies an LLVM IR instruction always maps to exatly one MLIR operation. While mostly true, there are already exceptions to this such as the PHI instruciton. Additionally, an mlirBuilder based solution also further complicates the builder implementations, which led to the listener based solution. Depends on D139405 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D139620
-
Carlos Galvez authored
Fixes #58782 Differential Revision: https://reviews.llvm.org/D139966
-
Argyrios Kyrtzidis authored
[clang/Lexer] Enhance `Lexer::getImmediateMacroNameForDiagnostics` to return a result from non-file buffers Use `SourceManager::isWrittenInScratchSpace()` to specifically check for token paste or stringization, instead of excluding all non-file buffers. This allows diagnostics to mention macro names that were defined from the command-line. Differential Revision: https://reviews.llvm.org/D140164
-
Yeting Kuo authored
The patch is splitted from D103435. The patch emits .variant_cc [0] for those function calls that have vector arguments or vector return values. [0]: https://github.com/riscv/riscv-elf-psabi-doc/pull/190 Initial authored by: HsiangKai Reviewed By: reames Differential Revision: https://reviews.llvm.org/D139414
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D140163
-
Vasileios Porpodas authored
The Function class now supports an adequate set of member functions to help modify the BB list, including Function::splice(), Function::erase(), Function::insert() etc. so we no longer need access to the underlying list. Differential Revision: https://reviews.llvm.org/D140162
-
David Goldblatt authored
All current analyses ignore the context. We make the argument mandatory for analyses, but optional for the query interface. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D136512
-
Jez Ng authored
We only want to rewrite paths to files that the linker looks up. Files under RPATH are looked up at runtime by dyld. Reviewed By: #lld-macho, keith Differential Revision: https://reviews.llvm.org/D140167
-