- Jan 15, 2022
-
-
Alex Bradbury authored
The 'RISC-V "stimecmp / vstimecmp" Extension' was ratified at the end of last year though hasn't yet been integrated in the main specification documents (see <https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions>). RISC-V "stimecmp / vstimecmp" Extension <https://github.com/riscv/riscv-time-compare/releases/download/v0.5.4/Sstc.pdf>. Differential Revision: https://reviews.llvm.org/D117311
-
Alex Bradbury authored
The "RISC-V State Enable Extension" was ratified at the end of at the end of last year though hasn't yet been integrated in the main specification documents (see <https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions>). This commit adds the CSRs defined by this extension in <https://github.com/riscv/riscv-state-enable/releases/download/v0.6.3/Smstateen.pdf>. Differential Revision: https://reviews.llvm.org/D117310
-
Alex Bradbury authored
The "RISC-V Count Overflow and Mode-Based Filtering Extension" was ratified at the end of last year though hasn't yet been integrated in the main specification documents (see <https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions>). This commit adds the CSRs defined by this extension in <https://github.com/riscv/riscv-count-overflow/releases/download/v0.5.2/Sscofpmf.pdf>. Differential Revision: https://reviews.llvm.org/D117308
-
Fangrui Song authored
This call is slightly try. We need to postpone getFixupKindNumBytes.
-
Chenbing.Zheng authored
These cases follow the same pattern, so they can be combined to a unqiue function. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117378
-
Fangrui Song authored
-
Fangrui Song authored
User errors should use reportError. reportError allows us to continue parsing the file and collect more diagnostics. While here, make the diagnostic follow convention, merge tests, and test line/column numbers.
-
eopXD authored
It seems that D115709 have mis-deleted the whole testcase for vector extension. This commit adds them back. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117353
-
Vitaly Buka authored
-
John Ericson authored
Sorry for the disruption, I will try again later. This reverts commit efeb5019.
-
eopXD authored
`zvl` is the new standard vector extension that specifies the minimum vector length of the vector extension. The `zvl` extension is related to the `zve` extension and other updates that are added in v1.0. According to https://github.com/riscv-non-isa/riscv-c-api-doc/pull/21, Clang defines macro `__riscv_v_min_vlen` for `zvl` and it can be used for applications that uses the vector extension. LLVM checks whether the option `riscv-v-vector-bits-min` (if specified) matches the `zvl*` extension specified. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D108694
-
Vitaly Buka authored
If function is not sanitized we must reset shadow, not copy. Depends on D117285 Reviewed By: kda, eugenis Differential Revision: https://reviews.llvm.org/D117286
-
Tom Stellard authored
Also, replace the existing actionscript implementation with a python script that can be run outside of GitHub Actions. The intention is that going forward, all github action functionality would be implemented in this script. Reviewed By: kwk Differential Revision: https://reviews.llvm.org/D116762
-
Lian Wang authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117191
-
Phoebe Wang authored
This reverts commit 1bb0caf5.
-
Phoebe Wang authored
This reverts commit 9b432371.
-
Yuanfang Chen authored
Follow-up on 74bb4ad5. It should not change behaviors but a good thing to do.
-
Quentin Colombet authored
This fixes a crash I observed in issue #48708 where the LSR pass tries to insert an instruction in a basic block with only a catchswitch statement in there. This happens because the Phi node being evaluated assumes the same value for different basic blocks. If the basic block associated with the incoming value of the operand being evaluated has an EHPad terminator LSR skips optimizing it. But if that incoming value can come from multiple different blocks there can be some incoming basic blocks which are terminated in an EHPad. If these are then rewritten in RewriteForPhi the ones containing an EHPad terminator will hit the "Insertion point must be a normal instruction" assert in AdjustInsertPositionForExpand. This fix makes CollectLoopInvariantFixupsAndFormulae also ignore cases where the same value has another incoming basic block with an EHPad, same as it already does in case the primary value has one. Patch by Lorenz Brun <lorenz@brun.one> Differential Revision: https://reviews.llvm.org/D98378
-
jacquesguan authored
Add patterns for vector widening integer add/subtract instructions Differential Revision: https://reviews.llvm.org/D117188
-
Alexander Yermolovich authored
This is a follow up to Fix size mismatch error with jemalloc. 4243b658 Although that fix works it increased memory footprint. With this patch we go back to original memory footprint. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D117341
-
Vitaly Buka authored
If function has no sanitize_memory we still reset shadow for nested calls. The first return from getShadow() correctly returned shadow for argument, but it didn't reset shadow of byval pointee. Depends on D117277 Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D117278
-
Shao-Ce SUN authored
`zfh` and `zfhmin` have been ratified, with version 1.0. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117098
-
Kevin Athey authored
Enable noundef analysis (-enable-noundef-analysis) via the -fsanitize-memory-param-retval clang flag. This completes the work found in: - https://reviews.llvm.org/D116855 - https://reviews.llvm.org/D116633 Depends on D116633 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D117293
-
John Ericson authored
This is the original patch in my GNUInstallDirs series, now last to merge as the final piece! It arose as a new draft of D28234. I initially did the unorthodox thing of pushing to that when I wasn't the original author, but since I ended up - Using `GNUInstallDirs`, rather than mimicking it, as the original author was hesitant to do but others requested. - Converting all the packages, not just LLVM, effecting many more projects than LLVM itself. I figured it was time to make a new revision. I have used this patch series (and many back-ports) as the basis of https://github.com/NixOS/nixpkgs/pull/111487 for my distro (NixOS), which was merged last spring (2021). It looked like people were generally on board in D28234, but I make note of this here in case extra motivation is useful. --- As pointed out in the original issue, a central tension is that LLVM already has some partial support for these sorts of things. Variables like `COMPILER_RT_INSTALL_PATH` have already been dealt with. Variables like `LLVM_LIBDIR_SUFFIX` however, will require further work, so that we may use `CMAKE_INSTALL_LIBDIR`. These remaining items will be addressed in further patches. What is here is now rote and so we should get it out of the way before dealing more intricately with the remainder. Reviewed By: #libunwind, #libc, #libc_abi, compnerd Differential Revision: https://reviews.llvm.org/D99484
-
Vitaly Buka authored
Depends on D117276 Reviewed By: kda, eugenis Differential Revision: https://reviews.llvm.org/D117277
-
Vitaly Buka authored
It's NFC because shadow of pointer is clean so origins will not be propagated anyway. Depends on D117275 Reviewed By: kda, eugenis Differential Revision: https://reviews.llvm.org/D117276
-
Ben Langmuir authored
Similar to the ld64 command-line options. These use the same underlying mechanisms as -l and -hidden-l, but allow specifying an absolute path to the archive. This is often more convenient for a one-off, or when adding a new search path could change how existing -l options are resolved. Differential Revision: https://reviews.llvm.org/D117360
-
Med Ismail Bennani authored
Fixes #52694 Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-
Aart Bik authored
Rather than hardcoding all constants, we now use the input tensor to drive the code setup. Of course, we still need to hardcode dim-2 of A and the final verification in CHECK is input dependent, but overall this sets a slightly better example of tensor setup in general. Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D117349
-
Jonas Devlieghere authored
Avoid other warnings from failing the test, such as -Wunused-command-line-argument in the downstream Swift fork.
-
Peter Klausler authored
Character substrings weren't being folded correctly; add tests and rework the implementation so that substrings of literals and named constant character scalars & arrays are properly folded for use in constant expressions. Differential Revision: https://reviews.llvm.org/D117343
-
Jonas Devlieghere authored
Currently, when connecting to a remote iOS device from the command line on Apple Silicon, we end up using the host platform (PlatfromMacOSX) instead of remote-ios (PlatformRemoteiOS). This happens because PlatfromMacOSX includes arm64-apple-ios and arm64e-apple-ios as compatible architectures, presumably to support debugging iOS Apps on Apple Silicon [1]. This is a problem for debugging remote ios devices, because the host platform doesn't look for an expanded shared cache on disk and as a result we end up reading everything from memory, incurring a significant performance hit. The crux of this patch is to make PlatfromMacOSX *not* compatible with arm64(e)-apple-ios. This also means that we now use remote-ios (PlatformRemoteiOS) as the platform for debugging iOS apps on Apple Silicon. This has the (unintended) side effect that unlike we do for the host platform, we no longer check our local shared cache, and incur a performance hit on debugging these apps. To avoid that, PlatformRemoteiOS now also check the local cache to support this use case, which is cheap enough to do unconditionally for PlatformRemoteiOS. [1] https://support.apple.com/guide/app-store/iphone-ipad-apps-mac-apple-silicon-fird2c7092da/mac Differential revision: https://reviews.llvm.org/D117340
-
James Y Knight authored
Breaks tests on some platforms. Reverting while investigating. This reverts commit a4e255f9.
-
Amir Ayupov authored
Summary: Reduce code size by removing redundant dependent template type from RewriteInstance methods. Code size savings (via bloaty on llvm-bolt Debug build): ``` symbol,vmsize,filesize -> vmsize,filesize (delta vmsize,filesize) updateELFSymbolTable 57096,59600 -> 56656,59048 (440,552) updateELFSymbolTable::lambda 35957,55277 -> 35949,54485 (8,792) getOutputSections 20592,21440 -> 20372,21156 (220,284) getOutputSections::lambda 1792,5300 -> 1792,5372 (0,-72) total delta (668,1556) ``` Reviewed By: maksfb FBD33589393
-
Amir Ayupov authored
Summary: Address @smeenai feedback https://reviews.llvm.org/D117061#inline-1122106: >CMake has if(IN_LIST) now, which you can use instead of the string(FIND) IN_LIST is available since CMake 3.3 released in 2015. Reviewed By: smeenai FBD33590959
-
Pranav Bhandarkar authored
This is a fix for a crash in the HexagonOptAddrMode pass that was looking for the third operand (offset) in the following instruction that does not, in fact, have a third operand: $r1 = L2_loadw_locked $r1 Additionally, this patch also adds an addrMode value to vgather pseudos in the Hexagon backend. Differential Revision: https://reviews.llvm.org/D117133
-
Matt Arsenault authored
Since 2959e082, we conservatively assume all inputs are enabled by default. This isn't the best interface for controlling these anyway, since it's not granular and only allows trimming the last fields.
-
Peter Klausler authored
ENTRY statement names in module subprograms were not acceptable for use as a "module procedure" in a generic interface, but should be. ENTRY statements need to have symbols with place-holding SubprogramNameDetails created for them in order to be visible in generic interfaces. Those symbols are created from the "program tree" data structure. This patch adds ENTRY statement names to the program tree data structure and uses them to generate SubprogramNameDetails symbols. Differential Revision: https://reviews.llvm.org/D117345
-
Nadav Rotem authored
This commit adds small tests for the combination of: {exact, no_exact} x { EQ, NE, UGT, UGE, ULT, ULE, SGT, SGE, SLT, SLE} This is related to the changes in D117338. -
Peter Klausler authored
Internal writes to character arrays should not blank-fill records (elements) past the last one that was written to. Differential Revision: https://reviews.llvm.org/D117342
-