- Mar 10, 2023
-
-
Nikita Popov authored
-
Alexander Shaposhnikov authored
This diff starts fixing our handling of out-of-line definitions of constrained templates. Initially it was motivated by https://github.com/llvm/llvm-project/issues/49620 and https://github.com/llvm/llvm-project/issues/60231. In particular, this diff adjusts Sema::computeDeclContext to work properly in the case of constrained template parameters. Test plan: 1/ ninja check-all 2/ Bootstrapped Clang passes all the tests 3/ Internal testing Differential revision: https://reviews.llvm.org/D145034
-
chenglin.bi authored
-
Sameer Sahasrabuddhe authored
An instruction that is "always uniform" is so even if it occurs in an irreducible cycle. The output produced by such an instruction may depend on the implementation defined cycle hierarchy, but that does not affect the uniformity of the output. In other words, an "always uniform" instruction is uniform even if it is not m-converged. Reviewed By: ruiling, ronlieb Differential Revision: https://reviews.llvm.org/D145572
-
Valentin Clement authored
Unlimited polymorphic entities can have an intrinsic dynamic type. Update the code of extends_type_of to compare the CFI_type in these case. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D145722
-
Max Kazantsev authored
-
Craig Topper authored
The table is sorted so we can use a binary search instead of a linear scan.
-
Markus Böck authored
This reverts commit 552522be. There are test failures in integration tests for GPU builds
-
Markus Böck authored
Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 When this patch lands any downstream users with custom LLVM conversion passes not yet using opaque pointers will start either experiencing assertions being triggered, null pointer dereferences or at the very least verifier errors. These can be either fixed by switching to opaque pointers or simply disabling opaque pointers in both pass options of any upstream conversion passes and any uses of `LLVMTypeConverter` via the `LowerToLLVMOptions`. Users using just MLIRs conversion passes to the LLVM Dialect should not experience any change in functionality except when inspecting the output from the passes. Differential Revision: https://reviews.llvm.org/D145585
-
Lang Hames authored
These sections were out of date.
-
Chuanqi Xu authored
This reverts commit 87ba95aa.
-
Chuanqi Xu authored
In the assertion enabled mode we will test if the computed linkage of Declaration is consistent with the cached linkage. But we shouldn't compuate it if we have cached linkage in the release modes.
-
Craig Topper authored
This moves the LoadFPImmArr array to the cpp file. Being in the header meant it was duplicated in every translation unit that includes the header. Move the 2 functions that use the array out of line.
-
Rong Xu authored
This change improves FS discriminators in the following ways: (1) use call-stack debug information in the the to generate discriminators: the same (src/line) DILs can now have same discriminator value if they come from different call-stacks. This effectively increases the usable discriminator values for each round of FS discriminator pass. (2) don't generate the FS discriminator for meta instructions (i.e. instructions not emitted). This reduces the number discriminators conflicts (for the case we run out of discriminator bits for that pass). (3) use less expensive hashing of xxHash64. These improvements should bring better performance for FSAFDO and they should be used by default. But this change creates incompatible FS discriminators. For the iterative profile users, they might see a performance drop in the first release with this change (due to the fact that the profiles have the old discriminators and the compiler uses the new discriminator). We have measured that this is not more than 1.5% on several benchmarks. Note the degradation should be gone in the second release and one should expect a performance gain over the binary without this change. One possible solution to the iterative profile issue would be separating discriminators for profile-use and the ones emitted to the binary. This would require a mechanism to allow two sets of discriminators to be maintained and then phasing out the first approach. This is too much churn in the compiler and the performance implications do not seem to be worth the effort. Instead, we put the changes under an option so iterative profile users can do a gradual rollout of this change. We will make the option default value to true in a later patch and eventually purge this option from the code base. Differential Revision: https://reviews.llvm.org/D145171
-
Chuanqi Xu authored
Close https://github.com/llvm/llvm-project/issues/61064. The root cause of the issue is that we will deserilize some declarations eagerly when reading the BMI. However, many declarations in the BMI are not necessary for the importer. So it wastes a lot of time.
-
Jie Fu authored
[libfuzzer] Fix build error due to out-of-line definition of 'Fuzzer' does not match any declaration in 'fuzzer::Fuzzer' (NFC) /data/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:138:9: error: out-of-line definition of 'Fuzzer' does not match any declaration in 'fuzzer::Fuzzer' Fuzzer::Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD, ^~~~~~ /data/llvm-project/compiler-rt/lib/fuzzer/FuzzerInternal.h:35:10: note: type of 4th parameter of member declaration does not match definition ('fuzzer::FuzzingOptions &' vs 'const fuzzer::FuzzingOptions &') FuzzingOptions &Options); ^ 1 error generated. -
Max Kazantsev authored
- No common loop-variant; - One comparison against loop-variant;
-
Max Kazantsev authored
-
Max Kazantsev authored
-
Max Kazantsev authored
-
Max Kazantsev authored
-
Max Kazantsev authored
-
Wu, Yingcong authored
Avoid some unneccessary copy Reviewed By: fmayer Differential Revision: https://reviews.llvm.org/D145758
-
sgokhale authored
Differential Revision: https://reviews.llvm.org/D145488
-
Max Kazantsev authored
-
Lang Hames authored
Passes aren't expected to be copied, and switching to unique_function allows them to capture values with move-only types.
-
Eugene Zhulenev authored
This change allows using fp8 pointers when exporting to LLVM, because we anyway export them as opaque pointers, however full support of fp8 types is not yet implemented on the LLVM side. Differential Revision: https://reviews.llvm.org/D143008
-
Yaxun (Sam) Liu authored
Currently HIP toolchain uses Driver::GetTemporaryDirectory to create a temporary directory for some temporary files during compilation. The temporary directories are not automatically deleted after compilation. This slows down compilation on Windows. Switch to use GetTemporaryPath which only creates temporay files which will be deleted automatically. Keep the original input file name convention for Darwin host toolchain since it is needed for deterministic binary (https://reviews.llvm.org/D111269) Fixes: SWDEV-386058 Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D145509
-
Sam Clegg authored
Like D131405, but for wasm-ld. Differential Revision: https://reviews.llvm.org/D145399
-
wanglian authored
with 'RegisterRegAllocBase<T>::FunctionPassCtor'. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D145032
-
Jim Lin authored
Refer from: https://reviews.llvm.org/D44782 After https://reviews.llvm.org/D130302, LW+SEXT.B can be folded into LB as partially reload stack slot. This gains incorrect optimization result from `StackSlotColoring` without given the number of bytes exactly load from stack. LB+SW are mis-interpreted as fully reload/restore from stack slot without the sign-extension. SW would be considered as a redundant store. The testcase is copied from llvm/test/CodeGen/X86/pr30821.mir. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D145471
-
Jim Lin authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D145549
-
Vitaly Buka authored
-
Igor Zhukov authored
Reviewed By: Mordante, philnik, ldionne, #libc Differential Revision: https://reviews.llvm.org/D144262
-
Luke Lau authored
Interleave and deinterleave shuffles are lowered by a more efficient sequence if the element size is smaller than ELEN. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D145678
-
Kirill Stoimenov authored
-
Paul Walker authored
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D145727
-
Michael Buch authored
[lldb][InstrumentationRuntime] Make 'data' struct anonymous in order to avoid collisions with types in the debuggee The `UBSAN`/`ASAN` plugins would previously call the internal helper structure injected into the source expression `struct data { ... };` This occasionally collided with user-defined types of the same (quite common) name. In the presence of varibale with the same name LLDB would simply fail to run the injected `InstrumentationRuntime` expressions with: ``` warning: cannot evaluate AddressSanitizer expression: expression failed to parse: error: <user expression 2>:2:5: must use 'struct' tag to refer to type 'data' in this scope data t; ``` In the presence of another type called 'data', LLDB would most likely crash with something like: ``` 0x00000001198de614 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool) + 1088 0x00000001198de614 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool) + 1088 0x0000000119907930 clang::ASTImporter::ImportDefinition(clang::Decl*) + 596 0x00000001163db928 lldb_private::ClangASTImporter::ASTImporterDelegate::ImportDefinitionTo(clang::Decl*, clang::Decl*) + 100 0x00000001163da070 (anonymous namespace)::CompleteTagDeclsScope::~CompleteTagDeclsScope() + 572 ... ``` ...because it got the types confused. This patch makes these structures anonymous so there's no chance of clashing with other types in the program. This is already the approach taken in `UBSan/InstrumentationRuntimeABSan.cpp`. **Testing** - API tests still pass - Tested manually that the `memory history` command now works in the presence of a local called `data` Differential Revision: https://reviews.llvm.org/D145569 -
Jun Zhang authored
This patch implements fold: max(a,b) nsw/nuw - min(a,b) --> abs(a nsw - b) Alive2: https://alive2.llvm.org/ce/z/4yLp7D Fixes: https://github.com/llvm/llvm-project/issues/61228 Signed-off-by:
Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D145540
-