- Mar 16, 2022
-
-
Nikita Popov authored
-
serge-sans-paille authored
-
Nikita Popov authored
With opaque pointers, we cannot use the pointer element type to determine the LocationSize for the AA query. Instead, -aa-eval tests are now required to have an explicit load or store for any pointer they want to compute alias results for, and the load/store types are used to determine the location size. This may affect ordering of results, and sorting within one result, as the type is not considered part of the sorted string anymore. To somewhat minimize the churn, printing still uses faux typed pointer notation.
-
Sam McCall authored
This mechanically applies the same changes from D121427 everywhere. Differential Revision: https://reviews.llvm.org/D121746
-
Valentin Clement authored
This patch adds lowering ofr the `system_clock` intrinsic. The call is lowered to runtime function call. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D121776 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Owen Pan authored
Fixes #54384. Differential Revision: https://reviews.llvm.org/D121682
-
wangyihan authored
Remove duplicate code in llvm::StringMapImpl::RehashTable, near StringMap.cpp:229 ``` if (!NewTableArray[NewBucket]) { NewTableArray[FullHash & (NewSize - 1)] = Bucket; NewHashArray[FullHash & (NewSize - 1)] = FullHash; if (I == BucketNo) NewBucketNo = NewBucket; continue; } ``` Reviewed By: MaskRay, dexonsmith Differential Revision: https://reviews.llvm.org/D121726 -
Vlad Serebrennikov authored
Reviewed By: aaron.ballman, erichkeane Differential Revision: https://reviews.llvm.org/D121723
-
serge-sans-paille authored
This is a (fixed) recommit of https://reviews.llvm.org/D121169 after: 1061034926 before: 1063332844 Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D121681
-
Fangrui Song authored
It is excessive to have a diagnostic for STB_LOCAL. Just reuse the invalid binding diagnostic for STB_LOCAL.
-
Weining Lu authored
Add more comments /*Lower=*/ and /*Upper=*/ calling generateImmOutOfRangeError.
-
Fangrui Song authored
-
Fangrui Song authored
To optimize the only call site `dyn_cast<ARMExidxSyntheticSection>(first)` and decrease code size.
-
Fangrui Song authored
If SHT_LLVM_SYMPART is unused, don't iterate over inputSections. If neither --strip-debug/--strip-all, don't iterate over inputSections.
-
Valentin Clement authored
This patch lowers the `cpu_time` and the `date_and_time` instrinsics to FIR and runtime calls. This patch is part of the upstreaming effort from fir-dev branch. Depends on D121704 Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121705 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Valentin Clement authored
Remove IntervalSet.h since it is a duplicate from flang/include/flang/Lower/IntervalSet.h. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121747
-
Shengchen Kan authored
This is preparation for D121768. The member's name should align w/ the interface for trival target feature.
-
MaheshRavishankar authored
https://reviews.llvm.org/D121369 fixed an issue with canonicalizing a linalg op producer with a cast op consumer. Adding a test to verify that change. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D121648
-
River Riddle authored
A fake unreachable was created and removed, but never erased.
-
Alex Brachet authored
-
Alex Brachet authored
We were in between two styles when this file was initially checked in.
-
Manoj Gupta authored
glibc >= 2.33 uses shared functions for stat family functions. D111984 added support for non-64 bit variants but they do not appear to be enough as we have been noticing msan errors on 64-bit stat variants on Chrome OS. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D121652
-
Sterling Augustine authored
Differential Revision: https://reviews.llvm.org/D121764
-
Fangrui Song authored
https://discourse.llvm.org/t/parallel-input-file-parsing/60164 initializeSymbols currently sets Defined::section and handles non-prevailing COMDAT groups. Move the code to the parallel postParse to reduce work from the single-threading code path and make parallel section initialization infeasible. Postpone reporting duplicate symbol errors so that the messages have the section information. (`Defined::section` is assigned in postParse and another thread may not have the information). * duplicated-synthetic-sym.s: BinaryFile duplicate definition (very rare) now has no section information * comdat-binding: `%t/w.o %t/g.o` leads to an undesired undefined symbol. This is not ideal but we report a diagnostic to inform that this is unsupported. (See release note) * comdat-discarded-lazy.s: %tdef.o is unextracted. The new behavior (discarded section error) makes more sense * i386-comdat.s: switched to a better approach working around .gnu.linkonce.t.__x86.get_pc_thunk.bx in glibc<2.32 for x86-32. Drop the ancient no-longer-relevant workaround for __i686.get_pc_thunk.bx Depends on D120640 Differential Revision: https://reviews.llvm.org/D120626
-
Haocong.Lu authored
Select SRLI+SLLI for and i64 %x, imm if the imm is a leading ones mask. It's useful in RV64 when the mask exceeds simm32 (cannot be generated by LUI). Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D121598
-
Sam McCall authored
Seems to have been added accidentally in 58db03a1 and then copied into clangd by me (but not actually needed).
-
Fangrui Song authored
This reverts commit c30e6447. It exposed brittle support for __x86.get_pc_thunk.bx. Need to think a bit how to support __x86.get_pc_thunk.bx.
-
Fangrui Song authored
Make it behave like the glibc<2.32 .gnu.linkonce usage that we want to work around.
-
Shafik Yaghmour authored
Removing comment out code, looks like debugging code left over from a while ago.
-
Vitaly Buka authored
-
Sam Clegg authored
In particular we use these in two places: 1. When building PIC code we no longer need to combine output segments into a single segment that can be initialized at `__memory_base`. Instead each segment can encode its offset from `__memory_base` in its initializer. e.g. ``` (i32.add (global.get __memory_base) (i32.const offset) ``` 2. When building PIC code we no longer need to relocation internalized global addresses. We can just initialize them with their correct offsets. Differential Revision: https://reviews.llvm.org/D121420
-
Zequan Wu authored
-
Nico Weber authored
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D121743
-
River Riddle authored
PDLInterp is effectively an internal dialect, so there isn't a need to stage the switch.
-
River Riddle authored
-
Jez Ng authored
Since Mach-O has a two-level namespace (unlike ELF), we can usually set this property to true. (I believe this setting is only available in the new LTO backend, so I can't really use ld64 / libLTO's behavior as a reference here... I'm just doing what I think is correct.) See {D119294} for the work done to calculate the `interposable` used in this diff. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119506 -
Fangrui Song authored
-
Tobias Nießen authored
This merely adds a missing "an" in the introductory sentence. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D121760
-
Sam McCall authored
This reverts commit 049f4e4e. The problem was a stray dependency in CLANG_TEST_DEPS which caused cmake to fail if clang-pseudo wasn't built. This is now removed.
-