- Aug 30, 2021
-
-
owenca authored
Add backward compatibility tests for mapping the deprecated ConstructorInitializerAllOnOneLineOrOnePerLine and AllowAllConstructorInitializersOnNextLine to PackConstructorInitializers. Differential Revision: https://reviews.llvm.org/D108882
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
Prepare for addGotEntry simplification.
-
Nikita Popov authored
ExposePointerBase() in SCEVExpander implements basically the same functionality as removePointerBase() in SCEV, so reuse it. The SCEVExpander code assumes that the pointer operand on adds is the last one -- I'm not sure that always holds. As such this might not be strictly NFC.
-
Fangrui Song authored
-
Nikita Popov authored
Pointer-typed SCEV expressions can no longer be mul or udiv, so we do not need to specially handle them here.
-
Nikita Popov authored
There can only be one pointer operand in an add expression, and we have sorted operands to guarantee that it is the first. As such, the pointer check for other operands is dead code.
-
Nikita Popov authored
Add expressions can contain at most one pointer operand nowadays, assert that in getPointerBase() and removePointerBase().
-
Vince Bridgers authored
Remove method X86LowerAMXType::getRowFromCol since it's not used, and it's causing a warning. Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D108862
-
Kazu Hirata authored
Identified with readability-redundant-string-cstr.
-
Lei Zhang authored
This avoids crashes when there are spv.GlobalVariable without pointer type.
-
- Aug 29, 2021
-
-
Sylvestre Ledru authored
-
Roman Podoliaka authored
It is currently possible to register a frame recognizer, but it will be applied if and only if the frame's PC points to the very first instruction of the specified function, which limits usability of this feature. The implementation already supports changing this behaviour by passing an additional flag, but it's not possible to set it via the command interface. Fix that. Reviewed By: jingham Differential Revision: https://reviews.llvm.org/D108510
-
Nikita Popov authored
This is a followup to D96780 to add one more pass missing from the NewPM LTO pipeline. The missing ArgPromotion run is inserted at the same position as in the LegacyPM, resolving the already present FIXME: https://github.com/llvm/llvm-project/blob/16086d47c0d0cd08ffae8e69a69c88653e654d01/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp#L1096-L1098 The compile-time impact is minimal with ~0.1% geomean regression on CTMark. Differential Revision: https://reviews.llvm.org/D108866
-
Yonghong Song authored
A new kind BTF_KIND_TAG is added to .BTF to encode btf_tag attributes. The format looks like CommonType.name : attribute string CommonType.type : attached to a struct/union/func/var. CommonType.info : encoding BTF_KIND_TAG kflag == 1 to indicate the attribute is for CommonType.type, or kflag == 0 for struct/union member or func argument. one uint32_t : to encode which member/argument starting from 0. If one particular type or member/argument has more than one attribute, multiple BTF_KIND_TAG will be generated. Differential Revision: https://reviews.llvm.org/D106622 -
Michael Kruse authored
Polly does not use the count program itself, but somewhere in lit it is expected to exists. Otherwise, the following error occurs: llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/subst.py:133: fatal: Did not find count in ./bin -
Michael Kruse authored
-
Steven Wan authored
Extend the information preserved in `TypeInfo` by replacing the `AlignIsRequired` bool flag with a three-valued enum, the enum also indicates where the alignment attribute come from, which could be helpful in determining whether the attribute should overrule. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D108858
-
Shilei Tian authored
`CU_EVENT_DEFAULT` is defined in CUDA header. It should be added to `openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.h` for CUDA free build. Reviewed By: ronlieb Differential Revision: https://reviews.llvm.org/D108878
-
Michael Kruse authored
-
David Carlier authored
Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D108867
-
Fangrui Song authored
[Linker] Replace comdat based bool LinkFromSrc with enum class LinkFrom and improve nodeduplicate tests. NFC This is different from symbol resolution based LinkFromSrc. Rename to be clearer. In the future we may support a new enum member 'Both' for nodeduplicate. This is feasible (by renaming to a private linkage GlobalValue), but we need to be careful not to break InstrProfiling.cpp's expectation of parallel profd/profc. The challenge is that current LTO symbol resolution only allows to mark one profc as prevailing: the other profc in another comdat nodeduplicate may be discarded while its associated profd isn't.
-
Nikita Popov authored
This will allow using -force-opaque-pointers in codegen tests.
-
Shilei Tian authored
This patch adds the support form event related interfaces, which will be used later to fix data race. See D104418 for more details. Reviewed By: jdoerfert, ye-luo Differential Revision: https://reviews.llvm.org/D108528
-
Fangrui Song authored
-
Aart Bik authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D108873
-
- Aug 28, 2021
-
-
George Rokos authored
-
Markus Böck authored
[mlir][NFC] Fully qualify default value of Attributes `getStorageType()` in files generated by mlir-tblgen
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Nikita Popov authored
If the icmp is in a different block, then the register for the icmp operand may not be initialized, as it nominally does not have cross-block uses. Add a check that the icmp is in the same block as the branch, which should be the common case. This matches what X86 FastISel does: https://github.com/llvm/llvm-project/blob/5b6b090cf2129228f05d7d0f504676b67f7524cf/llvm/lib/Target/X86/X86FastISel.cpp#L1648 The "not" transform that could have a similar issue is dropped entirely, because it is currently dead: The incoming value is a branch or select condition of type i1, but this code requires an i32 to trigger. Fixes https://bugs.llvm.org/show_bug.cgi?id=51651. Differential Revision: https://reviews.llvm.org/D108840
-
Uday Bondhugula authored
Drop mgpuMemHostRegisterMemRef's dependence on LLVM Support. This method is the only one in CUDA runtime wrappers library that creates a dependence on libLLVMSupport due to its use of SmallVector and ArrayRef. The code can be as easily/compactly written without those ADT. The dependence on LLVMSupport adds a significant amount of additional complexity for external things that want to link this library in (both statically or as a shared object) since libLLVMSupport includes numerous other objects that are sensitive to C++ compiler version and ABI. Differential Revision: https://reviews.llvm.org/D108684
-
luxufan authored
This patch add the R_RISCV_GOT_HI20 and R_RISCV_CALL_PLT relocation support. And the basic got/plt was implemented. Because of riscv32 and riscv64 has different pointer size, the got entry size and instructions of plt entry is different. This patch is the basic support, the optimization pass at preFixup stage has not been implemented. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D107688
-
Nico Weber authored
The assert is harmless and thinks worked fine in builds with asserts enabled, but it's still nice to fix the assert. Differential Revision: https://reviews.llvm.org/D108853
-
Ben Barham authored
Reading the AST block can never fail with a recoverable error as modules cannot be removed during this phase. Change the return type of these functions to return an llvm::Error instead, ie. either success or failure. NFC other than the wording of some of the errors. Differential Revision: https://reviews.llvm.org/D108268
-
Mehdi Amini authored
It broke lvalue arguments otherwise:
-
Mehdi Amini authored
Some classes like mlir::Operation have a non-const print() method.
-
David Blaikie authored
-
Mehdi Amini authored
This allows using this helper with rvalues.
-