- Apr 28, 2022
-
-
Michael Forster authored
Revert "[llvm-pdbutil] Add options to only dump symbol record at specified offset and its parents or children with spcified depth." This reverts commit a3b7cb01. symbol-offset.test fails under MSAN: [ 1] ; RUN: llvm-pdbutil yaml2pdb %p/Inputs/symbol-offset.yaml --pdb=%t.pdb [FAIL] llvm-pdbutil yaml2pdb <REDACTED>/llvm/test/tools/llvm-pdbutil/Inputs/symbol-offset.yaml --pdb=<REDACTED>/tmp/symbol-offset.test/symbol-offset.test.tmp.pdb ==9283==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x55f975e5eb91 in __libcpp_tls_set <REDACTED>/include/c++/v1/__threading_support:428:12 #1 0x55f975e5eb91 in set_pointer <REDACTED>/include/c++/v1/thread:196:5 #2 0x55f975e5eb91 in void* std::__msan::__thread_proxy<std::__msan::tuple<std::__msan::unique_ptr<std::__msan::__thread_struct, std::__msan::default_delete<std::__msan::__thread_struct> >, llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()> >(void*) <REDACTED>/include/c++/v1/thread:285:27 #3 0x7f74a1e55b54 in start_thread (<REDACTED>/libpthread.so.0+0xbb54) (BuildId: 64752de50ebd1a108f4b3f8d0d7e1a13) #4 0x7f74a1dc9f7e in clone (<REDACTED>/libc.so.6+0x13cf7e) (BuildId: 7cfed7708e5ab7fcb286b373de21ee76)
-
Andrzej Warzynski authored
Merely making sure that we use consistent spelling.
-
Simon Pilgrim authored
-
Dmitry Makogon authored
-
Mike Kashkarov authored
Previously MASK= elements were accessed in assumption that mask is an array of input argument rank (and in combination with explicit DIM= argument we had out-of-bounds access), but for MAXLOC/MINLOC/FINDLOC mask should be be conformable and could be scalar. Add new regression tests with scalar mask for verification. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D124408
-
Mike Kashkarov authored
Similarly to LBOUND((x)) in https://reviews.llvm.org/D123838 - fix UBOUND((x)) folding for constant arrays to return shape instead of recurse scan. Depends on D123520 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D123944
-
Marco Antognini authored
This getLValue function was declared in 98db1f99 ([Analyzer] [NFC] Parameter Regions, 2020-05-11) but was never implemented. Reviewed By: NoQ Differential Revision: https://reviews.llvm.org/D124461
-
Ties Stuij authored
The build attribute number can be found in the Arm ABI addenda32 document: https://github.com/ARM-software/abi-aa/blob/main/addenda32/addenda32.rst#335target-related-attributes Reviewed By: tmatheson Differential Revision: https://reviews.llvm.org/D124090
-
Ilya Biryukov authored
- Do not traverse concept decl inside `AutoType`. We only traverse declaration and definitions, not references to a declaration. - Do not visit implicit AST node the relevant traversal mode. - Add traversal extension points for concept requirements. - Renamed `TraverseConceptReference` to mark as helper to share the code. Having an extension point there seems confusing given that there are many concept refences in the AST that do not call the helper. Those are `AutoType`, `AutoTypeLoc` and constraint requirements. Only clangd code requires an update. There are no use-cases for concept requirement traversals yet, but I added them in the earlier version of the patch and decided to keep them for completeness. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124532
-
Krasimir Georgiev authored
This adds a regression test from the comments on https://reviews.llvm.org/D121370. Reviewed By: MyDeveloperDay, curdeius Differential Revision: https://reviews.llvm.org/D124513
-
Krasimir Georgiev authored
This reverts commit d46fa023. Regressed include order in some cases with trailing comments, see the comments on https://reviews.llvm.org/D121370. Will add a regression test in a follow-up commit.
-
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
-