- Dec 16, 2022
-
-
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
-
Jordan Rupprecht authored
Fixes the test failure in 240e29c5, reported on the D140058 review thread.
-
Owen Pan authored
For the code-changing options InsertBraces, RemoveBracesLLVM, and RemoveSemicolon, turn the option on only when running the token analyzer pass for it. This improves the run-time and avoids interference from other options. Differential Revision: https://reviews.llvm.org/D140058
-
Carlo Bertolli authored
I accidentally left out the test for the pinned API introduced by D138933. Adding it back. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D140077
-
Kai Luo authored
The archive is generated via ``` touch foo.c ar crus libfoo.a foo.c ar d libfoo.a foo.c ``` Thus it contains free list. Differential Revision: https://reviews.llvm.org/D138985
-
Matt Arsenault authored
We should probably handle any 32-bit type here, but the intrinsic definition and selection pattern currently do not. Avoids a few lit tests failures when switched on by default.
-
Peter Klausler authored
When a function has an implicit interface its result type may not have a deferred type parameter. Differential Revision: https://reviews.llvm.org/D140132
-
Shubham Sandeep Rastogi authored
Differential Revision: https://reviews.llvm.org/D134817
-
wren romano authored
Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D140171
-
Jordan Rupprecht authored
-
Peter Klausler authored
Semantic checking for DEALLOCATE statements omitted checks for polymorphic objects and ultimate allocatable components in a pure procedure, which if not caught would allow execution of an impure FINAL subroutine defined on a type extension. Differential Revision: https://reviews.llvm.org/D140129
-
Rob Suderman authored
When using a tosa resize for ?x1x1x? to ?x1x?x? we should avoid doing a 2D interpolation as only two unique values are loaded. As the extract operation performance numerical computation on its values the superfluous extracts may fail to be coalesced. Instead we only interpolate between the values if there are multiple values to interpolate between. For the integer case we also perform scaling by the scaling-factor to apply the same integer scaling behavior as interpolation. Reviewed By: jpienaar, NatashaKnk Differential Revision: https://reviews.llvm.org/D139979
-
Igor Zhukov authored
Reviewed By: Mordante, philnik, #libc Differential Revision: https://reviews.llvm.org/D139791
-