- Mar 23, 2022
-
-
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
-
Craig Topper authored
MMX_MOVD64from64rr moves an MMX register to a 64-bit GPR. MMX_MOVD64from64mr is the memory version of moving a MMX register to a 64-bit GPR. It requires the REX.W bit to be set. There are no isel patterns that use this instruction. MMX_MOVQ64mr is the MMX register store instruction. It doesn't require a REX.W prefix. This makes it one byte shorter to encode than MMX_MOVD64from64mr in many cases. Both store instructions output the same mnemonic string. The assembler would choose MMX_MOVQ64mr if it was to parse the output. Which is another reason using it is the correct thing to do. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D122241
-
Zixu Wang authored
Change the Symbol Graph serializer for ExtractAPI to use `objective-c` for the language name string for Objective-C, to align with clang frontend standards.
-
Craig Topper authored
Differential Revision: https://reviews.llvm.org/D122262
-
wren romano authored
I'm using "shape" to mean the compile-time object, where zeros indicate sizes which are compile-time dynamic; and using "sizes" to mean the run-time object, where zeros indicate a dimension with no coordinates (hence resulting in trivial storage). Because their semantics differ on zeros, it's important to keep them distinguished. Although we do not define separate C++ types to capture the distinction, we can at least use variable names to do so. This is (tangential) work towards fixing: https://github.com/llvm/llvm-project/issues/51652 Depends On D122057 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D122058
-
Mike Rice authored
Adds basic parsing/sema/serialization support for the #pragma omp parallel loop directive. Differential Revision: https://reviews.llvm.org/D122247
-
Stanislav Mekhanoshin authored
This is undocumented, but it should work. Differential Revision: https://reviews.llvm.org/D122252
-
Philip Reames authored
The motivation for this is that while both memcpyopt and dse will catch this case, both are limited by MSSA's walk back threshold when finding clobbers. As such, if you have a memcpy of an otherwise dead alloca placed towards the end of a long basic block with lots of other memory instructions, it would be missed. This is a bit undesirable for such an "obviously" useless bit of code. As noted in comments, we should probably generalize instcombine's escape analysis peephole (see visitAllocInst) to allow read xor write. Doing that would subsume this code in a more general way, but is also a more involved change. For the moment, I went with the easiest fix.
-
Louis Dionne authored
-
wren romano authored
This is work towards: https://github.com/llvm/llvm-project/issues/51652 This differential doesn't yet make use of the new kSparseToSparse, just introduces it. The differential that finally makes use of them is D122061, which is the final differential in the chain that fixes bug 51652. Depends On D122054 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D122055
-
Valentin Clement authored
This patch adds some lowering tests for the `forall` construct. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D122253 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Arthur Eubanks authored
This reverts commit 79613185. Causes crashes, see comments in https://reviews.llvm.org/D121973.
-
Sanjay Patel authored
The affected code can be updated to solve #54364, so make some cosmetic diffs before real changes.
-
Zixu Wang authored
- The name SymbolGraph is inappropriate and confusing for the new library for clang-extract-api. Refactor and rename things to make it clear that ExtractAPI is the core functionality and SymbolGraph is one serializer for the API information. - Add documentation comments to ExtractAPI classes and methods to improve readability and clearness of the ExtractAPI work. Differential Revision: https://reviews.llvm.org/D122160
-
Philip Reames authored
-
wren romano authored
This is work towards: https://github.com/llvm/llvm-project/issues/51652 This differential sets up the options and threads them through everywhere, but doesn't actually use them yet. The differential that finally makes use of them is D122061, which is the final differential in the chain that fixes bug 51652. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D122054
-
wren romano authored
This is the more logical place for the function to live. If/when we factor out a separate class for just the `Coordinates` themselves, then the definition should be moved to `Coordinates::lexOrder` (and `Element::lexOrder` would become a thin wrapper delegating to that function). This is (tangentially) work towards fixing: https://github.com/llvm/llvm-project/issues/51652 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D122057
-
Valentin Clement authored
This patch adds test for calls with POINTER dummy arguments on the caller side. It also fixes some formatting error that was introduced when upstreaming the other pointer tests. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D122238 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-