- Jan 13, 2023
-
-
Hui Li authored
Add unit tests For EmulateInstructionLoongArch existing branch instruction. Add 19 test cases in total. Without this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.55s Passed: 1025 ``` With this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.45s Passed: 1044 ``` Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D140386
-
Hui Li authored
This adds the jump slot mapping for LoongArch. This is a simple change that ensures lldb running properly. Note that this problem was found only when CMake variables "DLLVM_ENABLE_ASSERTIONS=ON" is selected. Without this patch, ``` $ build/bin/lldb test ../ELFHeader::GetRelocationJumpSlotType() const: Assertion `false && "architecture not supported"' fail ``` With this patch ``` $ build/bin/lldb test (lldb) target create "test" Current executable set to '../test' (loongarch64). ``` Reviewed By: SixWeining, DavidSpickett Differential Revision: https://reviews.llvm.org/D141245
-
Vitaly Buka authored
Breaks ubsan build, details in D141188. This reverts commit 3ac2b3a4.
-
Tony Tye authored
- Clarify CFI rules in heterogeneous DWARF extensions - Added DWARF source language memory spaces. - Added DWARF architecture address spaces. - Other minor corrections. Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D141548
-
Ben Shi authored
The test 'Preprocessor/predefined-arch-macros.c' contains many target tests than 'amdgpu'. If clang is built without 'amdgpu', then failures in other target tests will not be reported. Reviewed By: aaron.ballman, MaskRay Differential Revision: https://reviews.llvm.org/D141647
-
Kirill Stoimenov authored
Main goal is to remove thread registry dependency from the interface because HWASAN is using its own code to manage threads. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D140039
-
Joseph Huber authored
Summary: `clang` is called `clang.exe` on windows, we need to glob the text inbetween.
-
Richard Smith authored
The result of recomputing the type of an LValue may be different from the type we find serialized with that LValue, either due to differing type sugar in a redeclaration, or more significantly due to a later declaration of a variable having an array bound that a prior declaration did not have. Therefore this assertion was attempting to verify a property that isn't necessarily true.
-
Nico Weber authored
Adds support for the following flags: * --thinlto-index-only, --thinlto-index-only= * --thinlto-emit-imports-files * --thinlto-emit-index-files * --thinlto-object-suffix-replace= * --thinlto-prefix-replace= See https://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html for some words on --thinlto-index-only. I don't really need the other flags, but they were in the vicinity and _someone_ might need them, so I figured I'd add them too. `-object_path_lto` now sets `c.AlwaysEmitRegularLTOObj` as in the other ports, which means it can now only point to a filename for non-thin LTO. I think that was the intent of D129705 anyways, so update test/MachO/lto-object-path.ll to use a non-thin bitcode file for that test. Differential Revision: https://reviews.llvm.org/D138451
-
Teresa Johnson authored
Track min/max/avg access density (accesses per byte and accesses per byte per lifetime second) metrics directly during profiling. This allows more accurate use of these metrics in profile analysis and use, instead of trying to compute them from already aggregated data in the profile. This required regenerating some of the raw profile and executable inputs for a few tests. While here, make the llvm-profdata memprof tests more resilient to differences in things like memory mapping, timestamps and cpu ids to make future test updates easier. Differential Revision: https://reviews.llvm.org/D141558
-
Yeting Kuo authored
D111904 made RISC-V customized lower ISD::CTLZ_ZERO_UNDEF by converting to float and using the float result. The expected value of CTLZ with zero input is the element size of input type. Since the result of above method with zero input must be greater than the element size, for ISD::CTLZ, we could use the minimum of element size and the result of CTLZ_ZERO_UNDER with same input. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D141585
-
Vitaly Buka authored
Breaks bots. Also it's missing changes we discussed on review. This reverts commit f001e50f. This reverts commit 29241892.
-
eopXD authored
From: vint32m1_t vmerge_vvm_i32m1 (vbool32_t mask, vint32m1_t op1, vint32m1_t op2, size_t vl); vint32m1_t vcompress_vm_i32m1 (vbool32_t mask, vint32m1_t src, size_t vl); To: vint32m1_t vmerge_vvm_i32m1 (vint32m1_t op1, vint32m1_t op2, vbool32_t selector, size_t vl); vint32m1_t vcompress_vm_i32m1 (vint32m1_t src, vbool32_t selector, size_t vl); Address issues: riscv-non-isa/rvv-intrinsic-doc#140 riscv-non-isa/rvv-intrinsic-doc#167 Pull request: riscv-non-isa/rvv-intrinsic-doc#185 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140686
-
Nico Weber authored
-
v1nh1shungry authored
Relevant issue: https://github.com/llvm/llvm-project/issues/59517 Currently this check will warn when the result is used in a `return` statement, e.g. ``` bool foobar() { std::vector<int> v; return v.empty(); // will get a warning here, which makes no sense IMO } ``` Reviewed By: cjdb, denik Differential Revision: https://reviews.llvm.org/D141107
-
Keith Smiley authored
This mirrors ld64's behavior. In many cases this likely still leads to a link failure but if you didn't actually use anything from the library it can be ignored. If you care about these invalid cases -fatal_warnings still upgrades it back to an error. Example: https://github.com/keith/ld64.lld/issues/3 Differential Revision: https://reviews.llvm.org/D141638
-
Alex Brachet authored
-
Xiang1 Zhang authored
Differential Revision: https://reviews.llvm.org/D141556 Reviewed By: lanza
-
Matt Arsenault authored
This looked like a plausibly correct out of tree patch. The changed testcases with the pragmas stripped out only use inbounds GEPs so I assume this is correct.
-
Mitch Phillips authored
This reverts commit 90a9beb7. Reason: Broke an internal build.
-
Mitch Phillips authored
This reverts commit 64138725. Parent change https://reviews.llvm.org/D140173 broke an internal build. I'll land this bit as part of the re-land for https://reviews.llvm.org/D140173.
-
Mitch Phillips authored
This reverts commit df87e62c. Parent change https://reviews.llvm.org/D140173 broke an internal build. I'll integrate this patch into the re-land for https://reviews.llvm.org/D140173.
-
Kirill Stoimenov authored
Main goal is to remove thread registry dependency from the interface because HWASAN is using its own code to manage threads. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D140039
-
Johannes Doerfert authored
-
Artem Belevich authored
libc++ introduced a handful of internal functions that may or may not be constexpr, depending on C++ version. For pre-constexpr variants we must declare __device__ counterparts. Otherwise the code fails to compile on the GPU side. See https://reviews.llvm.org/D79555 Differential Revision: https://reviews.llvm.org/D141555
-
Diego Caballero authored
When detecting reductions, make sure the block argument is from the linalg generic op. This fixes https://github.com/iree-org/iree/issues/11779 . Co-authored-by:
Andrzej Warzynski <andrzej.warzynski@arm.com> Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D141413
-
bixia1 authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D141554
-
Johannes Doerfert authored
We use the actual access (=remote) instruction when reasoning about accesses, except for one leftover use case of the local instruction. This caused us to potentially ignore the dominating write if the read and write were in a different function than the (stack) allocation. Reported by @ye-luo
-
Nikolas Klauser authored
Most people don't have a versioned clang-tidy locally. This allows them to still run the clang-tidy test if they have a suitable version. Reviewed By: ldionne, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D141241
-
River Riddle authored
GCC was barfing on template deduction for ArrayRef parameters in some situations.
-
River Riddle authored
This gives a better diagnostic in general, because it indicates that the user didn't close out the last open puncutation range. For example: ``` foo.op { some.op -> !blah.pointer< } ``` We want the error to hint about the unclosed `<`, not the `}` (which isn't really in the context of the type). Differential Revision: https://reviews.llvm.org/D141635 -
Florian Mayer authored
-
Eric Li authored
Add a `getFileRange` function alongside the existing `getRangeForEdit` as a way to get a contiguous range within a single file (similar to `getRangeForEdit`) but without the restriction that it cannot be in a system header. This can be used where a tool may want to use the range to extract the source text. In such cases, we don't want to restrict this from pulling from system headers. Differential Revision: https://reviews.llvm.org/D141634
-
Joseph Huber authored
Summary: This patch changes around some of the names for the temp files we generate. This also emits the `postlink` and `postopt` temp files. We don't use the built-in save temps from LTO right now because it doesn't give the ASM properly. We may be able to fix that in the future.
-
Florian Hahn authored
Add EarlyIfConversion tests for AArch64 where the condition is a load with invariant operands. A follow-up patch will propose a heuristic to consider such conditions predictable.
-
Peiming Liu authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D140712
-
Siva Chandra Reddy authored
-
Roman Lebedev authored
The bool is in the wrong place and might get implicitly converted from the previous second argument - a pointer. Thinking about it more, it's not really the best place for that functionality anyways, only a single caller needs that. This reverts commit 3c5b1f2d.
-
Jeff Niu authored
-
Med Ismail Bennani authored
Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-