- Jun 11, 2020
-
-
George Mitenkov authored
Following the previous revision `D81100`, this commit implements a templated class that would provide conversion patterns for “straightforward” SPIR-V ops into LLVM dialect. Templating allows to abstract away from concrete implementation for each specific op. Those are mainly binary operations. Currently supported and tested ops are: - Arithmetic ops: `IAdd`, `ISub`, `IMul`, `FAdd`, `FSub`, `FMul`, `FDiv`, `FNegate`, `SDiv`, `SRem` and `UDiv` - Bitwise ops: `BitwiseAnd`, `BitwiseOr`, `BitwiseXor` The implementation relies on `SPIRVToLLVMConversion` class that makes use of `OpConversionPattern`. Differential Revision: https://reviews.llvm.org/D81305
-
Hongtao Yu authored
This change introduces an LLD switch --thinlto-single-module to allow compiling only a part of the input modules. This is specifically enables: 1. Fast investigating/debugging modules of interest without spending time on compiling unrelated modules. 2. Compiler debug dump with -mllvm -debug-only= for specific modules. It will be useful for large applications which has 1K+ input modules for thinLTO. The switch can be combined with `--lto-obj-path=` or `--lto-emit-asm` to obtain intermediate object files or assembly files. So far the module name matching is implemented as a fuzzy name lookup where the modules with name containing the switch value are compiled. E.g, Command: ld.lld main.o thin.a --thinlto-single-module=thin.a --lto-obj-path=single.o log: [ThinLTO] Selecting thin.a(thin1.o at 168) to compile [ThinLTO] Selecting thin.a(thin2.o at 228) to compile Command: ld.lld main.o thin.a --thinlto-single-module=thin1.o --lto-obj-path=single.o log: [ThinLTO] Selecting thin.a(thin1.o at 168) to compile Differential Revision: https://reviews.llvm.org/D80406 -
Scott Constable authored
@nikic raised an issue on D75936 that the added complexity to the O0 pipeline was causing noticeable slowdowns for `-O0` builds. This patch addresses the issue by adding a pass with equal security properties, but without any optimizations (and more importantly, without the need for expensive analysis dependencies). Reviewers: nikic, craig.topper, mattdr Reviewed By: craig.topper, mattdr Differential Revision: https://reviews.llvm.org/D80964
-
Siva Chandra Reddy authored
That if(EXISTS ...) works only with full paths was missed in couple of places a in recent cleanup.
-
Jonas Devlieghere authored
These tests are flaky on the reproducer bot. I suspect it has something to do with the module cache. Skipping the whole category while I investigate the issue.
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D81610
-
Craig Topper authored
[X86] Call LowerADDRSPACECAST directly from ReplaceNodeResults to avoid repeating identical code. NFC
-
Craig Topper authored
[X86] Add a 32-bit version of mixed-ptr-sizes.ll to make sure we get code coverage on the ADDRSPACECAST handling in ReplaceNodeResults. NFC
-
Akira Hatanaka authored
deleted Instead of forcing the class to be passed in registers, which was what r350920 did, issue a warning and inform the user that the attribute cannot be used. For more background, see this discussion: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190128/259907.html This fixes PR39683. rdar://problem/47308221 Differential Revision: https://reviews.llvm.org/D57626
-
Adrian Prantl authored
This brings over functionality from the xcodeproject that went missing during the CMake transition. rdar://problem/63840635 Differential Revision: https://reviews.llvm.org/D81300
-
Casey Carter authored
... so we can disable `TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE`.
-
Leonard Chan authored
This reverts commit 2e009dbc. Reverting since there were some test failures on buildbots that used the new pass manager. ASan and MSan are also finding some bugs in this that I'll need to address.
-
Michael Spencer authored
This change got missed while upstreaming https://reviews.llvm.org/D77772. This is the part of that change that actually passes the correct arguments when opening a PCM. The test didn't catch this because it starts at the `MemoryBuffer::getOpenFile` level. It's not really possible to test `ModuleManager::addModule` itself to verify how the file was opened.
-
Louis Dionne authored
This will allow simplifying executors by always just copying the whole %T, and assuming that all file dependencies are contained in it. Superseeds https://reviews.llvm.org/D78245, which tried to make %T unique in Lit, but which encountered push back.
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D80754
-
Mehdi Amini authored
The tutorial refers to invoking toyc with '-mlir-print-debuginfo' but it wasn't registered anymore. Differential Revision: https://reviews.llvm.org/D81604
-
Leonard Chan authored
This patch contains all of the clang changes from D72959. - Generalize the relative vtables ABI such that it can be used by other targets. - Add an enum VTableComponentLayout which controls whether components in the vtable should be pointers to other structs or relative offsets to those structs. Other ABIs can change this enum to restructure how components in the vtable are laid out/accessed. - Add methods to ConstantInitBuilder for inserting relative offsets to a specified position in the aggregate being constructed. See D72959 for background info. Differential Revision: https://reviews.llvm.org/D77592
-
Craig Topper authored
This is a cheap instruction. It's better to repeat it than to do two separate operations. There are probably more cases like this, but this one was reported as a regression in our internal benchmarking.
-
romanova-ekaterina authored
We relied on the fact that the iterators walks through the elements of a DenseSet in a deterministic order (which is not true). This caused ThinLTO cache misses. This patch addresses this problem. See PR 45819 for additional information https://bugs.llvm.org/show_bug.cgi?id=45819 Differential Revision: https://reviews.llvm.org/D79772
-
serge-sans-paille authored
If we probe *after* each static stack allocation, we need to probe *before* each dynamic stack allocation. Provide a scheme to describe the possible scenario. Thanks a lot to @jonpa for motivating this fix. Differential Revision: https://reviews.llvm.org/D81067
-
Matt Arsenault authored
-
Leonard Chan authored
`noderef` was failing to trigger warnings in some cases related to c++ style casting. This patch addresses them. Differential Revision: https://reviews.llvm.org/D77836
-
Arthur Eubanks authored
Summary: gcc 5.1 is still supported according to https://releases.llvm.org/10.0.0/docs/GettingStarted.html We're hitting the following bug due to a variable created in the loop header being the same as a variable used in the loop header: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54430 Reviewers: hctim, pcc Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D81594
-
Michael Liao authored
-
Ayke van Laethem authored
The in, out, and sbi/cbi family of instructions seem to require a custom decoder. I'm not exactly sure why and would prefer to convince TableGen to provide the correct decoders for these, but I can't seem to convince it to do so. They simply disassemble without any operands. Differential Revision: https://reviews.llvm.org/D74049
-
Stanislav Mekhanoshin authored
There is an invalid cast produced when a pointee is a pointer and the alloca type is cast to a pointer to int. Differential Revision: https://reviews.llvm.org/D81606
-
Leonard Chan authored
This patch allows for usage of the @PLT modifier in AArch64 assembly which lowers to an R_AARCH64_PLT32 relocation. See D81184 for handling this relocation in lld. Differential Revision: https://reviews.llvm.org/D81446
-
Marco Elver authored
The expected strings would previously not catch bugs when redzones were added when they were not actually expected. Fix by adding "global " before the type.
-
Siva Chandra authored
Summary: With this change, "ninja check-libc" on linux/aarch64 succeeds. However, all entrypoints with machine dependent implementations have been skipped. A good number of these skipped entrypoints can be enabled once we have aarch64 syscall support available. Reviewers: abrachet, asteinhauser Differential Revision: https://reviews.llvm.org/D81533
-
Craig Topper authored
This makes the pattern available to global isel.
-
Siva Chandra authored
The feature check should probably be enhanced for non-x86 architectures, but this change shields them from x86 specific pieces until then. This patch has been split out from https://reviews.llvm.org/D81533.
-
Michael Liao authored
Summary: - In HIP, just as the regular device-only compilation, the device-only relocatable code compilation should not involve offload bundle. - In addition, that device-only relocatable code compilation should have the similar 3 steps, namely preprocessor, compile, and backend, to the regular code generation with `-emit-llvm`. Reviewers: yaxunl, tra Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81427
-
Saiyedul Islam authored
Summary: New file include to support platform dependent grid constants. It will be used by clang, libomptarget plugins, and deviceRTLs to access constant values consistently and with fast access in the deviceRTLs. Originally authored by Greg Rodgers (@gregrodgers). Reviewers: arsenm, sameerds, jdoerfert, yaxunl, b-sumner, scchan, JonChesterfield Reviewed By: arsenm Subscribers: llvm-commits, pdhaliwal, jholewinski, jvesely, wdng, nhaehnle, guansong, kerbowa, sstefan1, cfe-commits, ronlieb, gregrodgers Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D80917
-
Marco Elver authored
Some platforms do not support aliases. Split the test, and pass explicit triple to avoid test failure. Reviewed By: thakis Tags: #clang Differential Revision: https://reviews.llvm.org/D81591
-
Matt Arsenault authored
This was promoting booleans to i32 to perform a comparison against them to feed to a select condition. Just use the booleans directly. This produces the same final code, since the combiner is unable to undo the mess this creates. I untangled this logic when I ported this code to GlobalISel, so port the cleanups back.
-
Matt Arsenault authored
MIRBuilder was in the middle of of a bunch of methods and not group with the other member variables, which made it harder to see what state this carries around. Move these to the top as is the usual convention.
-
Heejin Ahn authored
`ErasedUncondBr` is used only in an `assert`, so it triggers a warning on builds without assertions. Fixed.
-
Christopher Tetreault authored
Reviewers: efriedma, craig.topper, RKSimon, samparker, kmclaughlin, david-arm Reviewed By: david-arm Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81520
-
David Green authored
-
Zequan Wu authored
Summary: Bug filed here: https://bugs.llvm.org/show_bug.cgi?id=45213 To resolve it, we let the checks for mangling LambdaContextDecl to be analogous to ItaniumMangle strategy: https://github.com/llvm/llvm-project/blob/master/clang/lib/AST/ItaniumMangle.cpp#L1829 Differential Revision: https://reviews.llvm.org/D80153
-