- Mar 23, 2022
-
-
Arjun P authored
This is a convenience function for adding new divisions to the Simplex given the numerator and denominator. This will be needed for symbolic integer lexmin support. Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D122159
-
Nikita Popov authored
Perform a bitcast first, so we can specify the correct pointer type inf EmitLoadOfPointerLValue(), rather than using a dummy void pointer.
-
David Spickett authored
This reverts commit eb5ecbbc due to failures on buildbots with expensive checks enabled.
-
Nikita Popov authored
There were two more places repeating this code, reuse the helper. This requires moving the static functions into the class.
-
serge-sans-paille authored
Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D122181
-
Benjamin Kramer authored
-
Ingo Müller authored
This also replaces the absolute link to the same document with a relative one in the same file. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D121814
-
David Spickett authored
Some implementations of setjmp will end with a br instead of a ret. This means that the next instruction after a call to setjmp must be a "bti j" (j for jump) to make this work when branch target identification is enabled. The BTI extension was added in armv8.5-a but the bti instruction is in the hint space. This means we can emit it for any architecture version as long as branch target enforcement flags are passed. The starting point for the hint number is 32 then call adds 2, jump adds 4. Hence "hint #36" for a "bti j" (and "hint #34" for the "bti c" you see at the start of functions). The existing Arm command line option -mno-bti-at-return-twice has been applied to AArch64 as well. Support is added to SelectionDAG Isel and GlobalIsel. FastIsel will defer to SelectionDAG. Based on the change done for M profile Arm in https://reviews.llvm.org/D112427 Fixes #48888 Reviewed By: danielkiss Differential Revision: https://reviews.llvm.org/D121707
-
Nikita Popov authored
Check which alignments are generated for loads and stores.
-
Nikita Popov authored
This reverts commit 767ec883. This results in a some incorrect alignments which are not covered by existing tests.
-
Tobias Hieta authored
-
Alex Bradbury authored
The previous code didn't take account for the fact that parseExpression my lex additional tokens - because of this, it's necessary to record the location of the current token ahead of the call. This patch additionally makes use of the fact parseExpression will set its End parameter to the end of the expression. Although this fix could be added independently of D122127, I've opted to make it a child patch in order to ensure the change has some test coverage. Differential Revision: https://reviews.llvm.org/D122128
-
Alex Bradbury authored
This addresses a series of FIXMEs introduced in D122020. A follow-up patch (D122128) addresses the bug that is exposed by this change (an issue with source location information when lexing identifiers). Differential Revision: https://reviews.llvm.org/D122127
-
Alexander Belyaev authored
-
Valentin Clement authored
Remove 2 spaces indent that was introduced by mistake when upstreaming these files.
-
Jacob Lambert authored
Code object version 5 will use the same EFlags as version 4, so we only need to add an additional case Differential Revision: https://reviews.llvm.org/D122190
-
Alisamar Husain authored
-
Craig Topper authored
This reverts commit 1a9b55b6. Causing build bot failures
-
Tom Stellard authored
This reverts commit 98fd3b35. This patch broke multiple bots.
-
Craig Topper authored
Instead of using operator[], use DenseMap::find to prevent default constructing an entry if it isn't already in the map.
-
Tom Stellard authored
The -mbranch-protection definition in Options.td was not given a Group, so this was causing clang to emit a -Wunused-command-line-argument warning when this flag was passed to the linker driver. This was a problem, because some build systems, like cmake, automatically pass the C flags to the linker. Therefore, any program that was compiled with -Werror and -mbranch-protection would fail to link with the error: argument unused during compilation: '-mbranch-protection=standard' [-Werror,-Wunused-command-line-argument] Reviewed By: vhscampos Differential Revision: https://reviews.llvm.org/D121983
-
Shraiysh Vaishay authored
This patch adds tests for flush and master constructs This is part of the upstreaming effort from the fir-dev branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D122250 Co-authored By: Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
-
Shraiysh Vaishay authored
This patch - adds assembly format for `omp.wsloop` operation - removes the `parseClauses` clauses as it is not required anymore This is expected to be the final patch in a series of patches for replacing parsers for clauses with `oilist`. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D121367
-
Phoebe Wang authored
GCC supports power-of-2 size structures for the arguments. Clang supports fewer than GCC. But Clang always crashes for the unsupported cases. This patch adds sema checks to do the diagnosts to solve these crashes. Reviewed By: jyu2 Differential Revision: https://reviews.llvm.org/D107141
-
jacquesguan authored
We already have bit hasFolder = 0 in the defination of the class Op, so no need to have another let assignment here. Differential Revision: https://reviews.llvm.org/D122222
-
jacquesguan authored
Make MaxSI, MaxUI, MinSI and MinUI commutative, so they will be canonicalized to have its constants appear as the second operand. And the constant folder will match more cases. Differential Revision: https://reviews.llvm.org/D122225
-
Shengchen Kan authored
The purpose is to keep the default behavior as before. Noticed by comments in D121600. Reviewed By: bjope Differential Revision: https://reviews.llvm.org/D122221
-
wangyihan authored
[NFC][llvm][StringMap]Extract createTable and getHashTable functions and add the inline attribute to the getMinBucketToReserveForEntries function. 1. Extract createTable and getHashTable functions. 2. Add the inline attribute to the getMinBucketToReserveForEntries function. 3. Remove unnecessary local variable HTSize. Statements in the following order appear in llvm::StringMapImpl::init and llvm::StringMapImpl::RehashTable, so I extracted this code into a function. getHashTable is for the same reason, it appears in llvm::StringMapImpl::FindKey, llvm::StringMapImpl::LookupBucketFor and llvm::StringMapImpl::RehashTable. ``` auto **Table = static_cast<StringMapEntryBase **>(safe_calloc( NewNumBuckets + 1, sizeof(StringMapEntryBase **) + sizeof(unsigned))); // Allocate one extra bucket, set it to look filled so the iterators stop at // end. Table[NewNumBuckets] = (StringMapEntryBase *)2; ``` ``` unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); ``` Reviewed By: skan, sepavloff Differential Revision: https://reviews.llvm.org/D121934 -
Ben Shi authored
The 'call' (long call) instruction is available on avr3 and above, and devices in avr2 and avr25 should use the 'rcall' (short call) instruction for function calls. Reviewed By: aykevl, dylanmckay Differential Revision: https://reviews.llvm.org/D121539
-
Ben Shi authored
Synchronize AVR device lists with gcc-avr-5.4.0 and avr-libc-2.0.0. Reviewed By: dylanmckay, aykevl Differential Revision: https://reviews.llvm.org/D121359
-
Ben Shi authored
An i8 argument should only cost 1 byte on the stack. This is compatible with avr-gcc. There are also more test cases (of calling convention) are added. Reviewed By: aykevl, dylanmckay Differential Revision: https://reviews.llvm.org/D121767
-
hsmahesha authored
First, add code to reserve all required special purpose registers, followed by code to reserve SGPRs, followed by code to reserve VGPRs/AGPRs. This patch is prepared as a pre-requisite to fix an issue related to GFX90A hardware. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D122219
-
Akira Hatanaka authored
TargetInfo.cpp Differential Revision: https://reviews.llvm.org/D122199
-
Nathan Chancellor authored
This reverts commit 9e9bda2e. This causes a backend error when building the Linux kernel for arm64. See https://reviews.llvm.org/D122166 for a simplified reproducer.
-
Vasileios Porpodas authored
Recommit "[SLP] Fix lookahead operand reordering for splat loads." attempt 2, fixed assertion crash. Original review: https://reviews.llvm.org/D121354 This reverts commit f7d7d2a0.
-
Fabian Wolff authored
Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D122111
-
Arthur Eubanks authored
-
Jez Ng authored
Update DataInCode's calculation of `endAddr` to use `getSize()` instead of `getFileSize()` -- while in practice they're the same for non-zerofill sections (which code sections are), we still should treat address sizes / offsets as distinct from file sizes / offsets.
-
Snehasish Kumar authored
This reverts commit f4b79442. Reland with underlying msan issue fixed in D122260.
-
Snehasish Kumar authored
This patch updates the existing default no-arg constructor for MemInfoBlock to explicitly initialize all members. Also add missing DataTypeId initialization to the other constructor. These issues were exposed by msan on patch D121179. With this patch D121179 builds cleanly on msan. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D122260
-