- Apr 28, 2022
-
-
Pavel Labath authored
Use lambdas to replace identical bits of code.
-
Lian Wang authored
Support VP_SETCC mask operations, turn it to logical operation. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D124438
-
Javier Setoain authored
Current index value generation uses fixed-length vector ops, this patch adds an alterantive codegen path compatible with scalable vectors by using `LLVM::StepVectorOp`. Differential Revision: https://reviews.llvm.org/D124454
-
Jay Foad authored
This comment has been untrue since D39758 changed MachinePointerInfo to store AddrSpace separately from V.
-
Nikita Popov authored
When using opaque pointers, convert GEPs into offset representation of the form P + V1 * Scale1 + V2 * Scale2 + ... + ConstantOffset. This allows us to recognize equivalent address calculations even if the GEPs don't use the same source element type. This fixes an opaque pointer codegen regression seen in rustc. Differential Revision: https://reviews.llvm.org/D124527
-
Luo, Yuanke authored
The `llvm.x86.cast.tile.to.vector` intrinsic is lowered to `llvm.x86.tilestored64.internal` and `load <256 x i32>`. The `llvm.x86.cast.vector.to.tile` is lowered to `store <256 x i32>` and `llvm.x86.tileloadd64.internal`. When `llvm.x86.cast.tile.to.vector` is used by `store <256 x i32>` or `load <256 x i32>` is used by `llvm.x86.cast.vector.to.tile`, they can be combined by `llvm.x86.tilestored64.internal` and `llvm.x86.tileloadd64.internal`. Differential Revision: https://reviews.llvm.org/D124378
-
Brad Smith authored
Similar to D116843 for Gnu.cpp Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D124356
-
Max Kazantsev authored
They can already be available, and even if not, DT/LI can be available. We should not recompute them. Old PM is unchanged because it would require changing dependencies, and we don't care enough about it. Differential Revision: https://reviews.llvm.org/D124439 Reviewed By: nikic, aeubanks
-
Wenju He authored
isNoopAddrSpaceCast is expecting SrcAS is different from DestAS. If the two AS are the same, consider ptrtoint/inttoptr as noop cast. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D123573
-
Liqin.Weng authored
Reviewed By: nigelp-xmos Differential Revision: https://reviews.llvm.org/D123661
-
Shengchen Kan authored
1. The scale factor must be 1, 2, 4, 8 2. The displacement must fit in 32-bit signed integer Noticed by: https://github.com/llvm/llvm-project/issues/55091 Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D124455
-
Arthur Eubanks authored
Previously all entries in global_ctors had to have the void()* type and we'd skip evaluating bitcasted functions. With opaque pointers we may see the function directly. Fixes #55147. Reviewed By: #opaque-pointers, nikic Differential Revision: https://reviews.llvm.org/D124553
-
Peixin-Qiao authored
This patch provides the basic infrastructure for lowering declarative constructs for OpenMP and OpenACC. 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, shraiysh, clementval Differential Revision: https://reviews.llvm.org/D124225
-
Aaron Puchert authored
Git wants to check in 'text' files with LF endings, so this changes them in the repository but not in the checkout, where they keep CRLF endings. Differential Revision: https://reviews.llvm.org/D124563
-
Douglas Yung authored
-
Jonas Devlieghere authored
Fix escaping when launching in terminal with AppleScript. The invocation we're building up is wrapped in single quotes when passed to bash and wrapped in double quotes for AppleScript. Here's an example invocation with the new escaping: tell application "Terminal" activate do script "/bin/bash -c 'arch -arch arm64 'darwin-debug' --unix-socket=/tmp/dL2jSh --arch=arm64 --working-dir \"/private/tmp/with spaces\" --disable-aslr -- \"foo\" \"bar\" \"baz\" ; echo Process exited with status $?';exit" end tell Previously we were using unescaped single quotes which resulted in the whole bash invocation being passed in pieces. That works most of the time but breaks when you have a space in your current working directory for example. rdar://91870763 Differential revision: https://reviews.llvm.org/D124568 -
Jonas Devlieghere authored
The BinaryHolder has two caches for object and archive entries. These are implemented as StringMaps of ObjectEntry and ArchiveEntry respectively. The fact that they're stored by value is problematic because the BinaryHolder hands out references that become invalidate when the data structure grows. This patch wraps those object instances in unique pointers and changes the interface to hand out pointers. This resulted in transient failures. rdar://90412671 Differential revision: https://reviews.llvm.org/D124567
-
Fangrui Song authored
Using the legacy PM for the optimization pipeline was deprecated in 13.0.0. Following recent changes to remove non-core features of the legacy PM/optimization pipeline, remove ThreadSanitizerLegacyPass. Reviewed By: #sanitizers, vitalybuka Differential Revision: https://reviews.llvm.org/D124209
-
Kirill Stoimenov authored
This reverts commit 74273d57. Buildbot: https://lab.llvm.org/buildbot/#/builders/5/builds/22795 Failing with memory leak.
-
Zequan Wu authored
-
Matt Arsenault authored
This reverts commit 6ff91d17.
-
Volodymyr Sapsai authored
[modules] Merge equivalent extensions and diagnose ivar redeclarations for extensions loaded from different modules. Emitting metadata for the same ivar multiple times can lead to miscompilations. Objective-C runtime adds offsets to calculate ivar position in memory and presence of duplicate offsets causes wrong final position thus overwriting unrelated memory. Such a situation is impossible with modules disabled as clang diagnoses ivar redeclarations during sema checks after parsing (`Sema::ActOnFields`). Fix the case with modules enabled by checking during deserialization if ivar is already declared. We also support a use case where the same category ends up in multiple modules. We don't want to treat this case as ivar redeclaration and instead merge corresponding ivars. rdar://83468070 Differential Revision: https://reviews.llvm.org/D121177
-
Matt Arsenault authored
There were two problems with directly copying the MMOs from the old function. The MMOs are owned by the function's Allocator, so need to be reallocated anyways (surprisingly I didn't notice breakage on this). Second, the PseudoSourceValues are also allocated per function and need to be reallocated.
-
Matt Arsenault authored
We probably should have the opposite of getRequiredProperties for this
-
Paul Robinson authored
-
Bill Wendling authored
This code is the same for all platforms. Differential Revision: https://reviews.llvm.org/D124566
-
Matt Arsenault authored
-
Matt Arsenault authored
The current testcase I'm trying to reduce only reproduces with IPRA enabled and requires handling multiple functions. The only real difference vs. the IR is the extra indirect to look for the underlying MachineFunction, so treat the ReduceWorkItem as the module instead of the function. The ugliest piece of this is really the ugliness of MachineModuleInfo. It not only tracks actual module state, but has a number of transient fields used for isel and/or the asm printer. These shouldn't do any harm for the use here, though they should be separated out.
-
Matt Arsenault authored
-
Peter Steinfeld authored
When passing a scalar .FALSE. as the MASK argument to MAXLOC, we were getting bad memory references. We were falling into the code intended when the MASK argument was missing. I fixed this by checking for a scalar MASK with a .FALSE. value and setting the result to all zeroes in that case. I also added tests for MAXLOC and MINLOC with scalar values of .TRUE. and .FALSE. for the MASK argument. I also special cased situations where the MASK argument is a scalar with a .TRUE. value and passed along a nullptr in such cases. Along the way, I eliminated the unused "chars" argument from the constructor for ExtremumLocAccumulator. Differential Revision: https://reviews.llvm.org/D124484
-
Matt Arsenault authored
This saves needing to specify -mtriple on nearly every use for MIR reduction.
-
David Blaikie authored
Rather than looking up by offset - actually use the hash table to perform faster lookup where possible. (for DWARFv4 DWP compilation units the hash isn't in the header - it's in the root DIE, but to parse the DIE you need the abbrev section and to get the abbrev section you need the index - so in that case lookup by offset is required)
-
Zequan Wu authored
[llvm-pdbutil] Add options to only dump symbol record at specified offset and its parents or children with spcified depth. Right now, if we want to dump symbol at specified offset, we need to use `grep`. And it can only show surrounding symbols in layout (not in lexical scope sense). This adds similar options to `dump` command as `llvm-dwarfdump` to allow users to dump symbol record at specified offset and its parents or children with spcified depth. `--symbol-offset=` must be used with `--modi` to dump only one symbol at given offset. `--show-parents`/`--show-children` must be used with `--symbol-offset` to dump all symbols that are parents/children of the symbol at given offset. `--parent-recurse-depth`/`--children-recurse-depth` must be used with `--show-parents`/`--show-children` to specify the max up/down depth. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D124317
-
Matt Arsenault authored
-
owenca authored
Fixes #55027. Differential Revision: https://reviews.llvm.org/D124452
-
David Blaikie authored
Fix a test case that had a bogus (probably I hand crafted it at some point) index that didn't point to the right data in the process.
-
Paul Robinson authored
The functionality was added in 7726ad04, catching up on the tests now.
-
Florian Hahn authored
When generating the tests I accidentally had some other changes applied. Fix the CHECK lines for current main.
-
Florian Hahn authored
Freezing just the result of the AND/OR here is not enough.
-
Simon Pilgrim authored
As discussed on Issue #55138 - BMI2 (fast shrx) shouldn't always fold to BT
-