- Mar 18, 2022
-
-
Amir Ayupov authored
Produce mnemonic tables, adding the functions to llvm::X86 namespace. Reviewed By: MaskRay, skan Differential Revision: https://reviews.llvm.org/D121572
-
Amir Ayupov authored
Add tablegen backend that generates X86 mnemonic-based opcode groupings, e.g. `isADD`, `isTEST`, etc. Addresses https://lists.llvm.org/pipermail/llvm-dev/2022-January/154526.html Reviewed By: skan Differential Revision: https://reviews.llvm.org/D121571
-
Valentin Clement authored
-
Nikita Popov authored
Revert "Add a cmake flag to turn `llvm_unreachable()` into builtin_trap() when assertions are disabled" This reverts commit 6316129e. This was implemented with inverted logic.
-
Michel Weber authored
This patch refactors the current coalesce implementation. It introduces the `SetCoalescer`, a class in which all coalescing functionality lives. The main advantage over the old design is the fact that the vectors of constraints do not have to be passed around, but are implemented as private fields of the SetCoalescer. This will become especially important once more inequality types are introduced. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D121364
-
jacquesguan authored
Differential Revision: https://reviews.llvm.org/D121980
-
Pavel Labath authored
D120762 accidentally moved the interrupt check into the block which was reading stdio. This meant that a ^C only took effect after a regular character has been pressed. This patch fixes that and adds a (pexpect) test. Differential Revision: https://reviews.llvm.org/D121912
-
Pavel Labath authored
This reverts commit f93d8613 -- looks like a bad application of `patch -p<level>`
-
Pavel Labath authored
The directive pollutes the namespace of all files including that header. Move the directive into the bodies of functions that need it instead.
-
Pavel Labath authored
This formalizes some of the discussion on D121631. Differential Revision: https://reviews.llvm.org/D121900
-
Pavel Labath authored
The call is useless, as any modules loaded there will be removed in ResolveExecutableModule. Modules will be reloaded again through the GetLoadedModuleList call in DYLDRendezvous.cpp.
-
Valentin Clement authored
This patch adds more lowering for array expressions. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121952 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Nandor Licker authored
Added a statistic counting the number of erased symbols. Differential Revision: https://reviews.llvm.org/D121930
-
James Henderson authored
The functionality (and llvm-objcopy's corresponding documentation) was added in https://github.com/llvm/llvm-project/commit/5ad0103d8a04cb066dfae4fc20b0dfcd9413f4d4. It looks like the llvm-strip docs to match were missed. Reviewed by: gbreynoo Differential Revision: https://reviews.llvm.org/D121902
-
Shengchen Kan authored
This is a follow-up patch for D121975.
-
Kai Luo authored
When generating a all-one mask value whose bitwidth is larger than 64, signed extension should be used rather then zero extension. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D120865
-
Craig Topper authored
-Rename Mode*Bit to Is*Bit to match X86Subtarget. -Rename FeatureLAHFSAHF to FeatureLAFHSAFH64 to match X86Subtarget. -Use consistent capitalization Reviewed By: skan Differential Revision: https://reviews.llvm.org/D121975
-
Kai Luo authored
PowerPC is lacking tests checking `_Atomic` alignment in cfe. Adding these tests since we're going to make change to align with gcc on Linux. Reviewed By: hubert.reinterpretcast, jsji Differential Revision: https://reviews.llvm.org/D121441
-
Shengchen Kan authored
Compiler only emits a comment for `Int_MemBarrier`, so it should be marked as a meta-instruction, which can help improve accuracy of debug location. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D121879
-
Shengchen Kan authored
An instruction is a meta-instruction if it doesn't produce any output in the form of executable instructions. So in the concept, a meta-instruction does not have to be target independent. Before this patch, `isMetaInstruction` is implemented by checking the opcode of the instruction, add we have no way to add target dependent opcode to the list, which does not make sense. After this patch, a bit `isMeta` is added for class `Instruction` in tablegen, which is used to indicate whether it's a meta instruction. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D121600
-
Andrew Wei authored
This patch tries to sink instructions when they are only used in a successor block. This is a further enhancement patch based on Anna's commit: D109700, which allows sinking an instruction having multiple uses in a single user. In this patch, sink instructions with multiple users in a single successor block will be supported. It could fix a known issue from rust: https://github.com/rust-lang/rust/issues/51346#issuecomment-394443610 Reviewed By: nikic, reames Differential Revision: https://reviews.llvm.org/D121585
-
Siva Chandra Reddy authored
The platform independent file implementation is not an entrypoint so it cannot be excluded via the entrypoints.txt file. Hence, we need a special treatment to exclude it from the build. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D121947
-
Wael Yehia authored
Reland "Load pass plugins during option processing, so that plugin options are registered and live." Fix Polly failures. Reviewed By: mehdi_amini, Meinersbur Differential Revision: https://reviews.llvm.org/D121566
-
Abinav Puthan Purayil authored
GlobalISel was selecting the av_* regclass for some cases. Differential Revision: https://reviews.llvm.org/D121933
-
Konstantin Varlamov authored
Changes in [P0896](https://wg21.link/p0896): - add `disable_sized_sentinel_for`; - add `iter_move` and `iter_swap`; - add a `requires` clause to the `operator->`; - add `iterator_concept`; - check that the `Iterator` template parameter is a bidirectional iterator; - add constraints to all comparison operators; - change the definitions of `iterator_category`, `value_type`, `difference_type` and `reference` (changes to `iterator_category` were already implemented). Also add a few forgotten things to the `reverse_iterator` synopsis (notably the spaceship operator). Differential Revision: https://reviews.llvm.org/D120180
-
Sterling Augustine authored
Prior to this change the __support_cpp_array_ref target's only dependency was libc_root. but it #includes "TypeTraits.h" and Array.h for that matter. These dependencies matter when building in distributed build systems and the relevant files must be know for the distributed build to ship them to the executor. Differential Revision: https://reviews.llvm.org/D121974
-
Jessica Clarke authored
RISCVISelDAGToDAG's selectImm uses RISCVTargetLowering::getAddr (specifically the ConstantPoolSDNode) as of 41454ab2 ("[RISCV] Use constant pool for large integers"), but nothing explicitly instantiates any of the templates, the only reason they exist is because of the various lowering methods in RISCVISelLowering.cpp that themselves use the methods. However, with inlining, those can end up not existing as real functions and thus not be exported, leading to link errors. Up until now this hasn't happened, but for whatever reason D121654 has triggered this on the sanitizer-ppc64be-linux buildbot, giving: ../../../../lib/libLLVMRISCVCodeGen.a(RISCVISelDAGToDAG.cpp.o): In function `selectImm(llvm::SelectionDAG*, llvm::SDLoc const&, llvm::MVT, long, llvm::RISCVSubtarget const&)': RISCVISelDAGToDAG.cpp:(.text._ZL9selectImmPN4llvm12SelectionDAGERKNS_5SDLocENS_3MVTElRKNS_14RISCVSubtargetE+0x3d8): undefined reference to `llvm::SDValue llvm::RISCVTargetLowering::getAddr<llvm::ConstantPoolSDNode>(llvm::ConstantPoolSDNode*, llvm::SelectionDAG&, bool) const' collect2: error: ld returned 1 exit status Fix this by explicitly instantiating getAddr in its four different forms so separate translation units can reliably use it. Fixes: 41454ab2 ("[RISCV] Use constant pool for large integers")
-
Sterling Augustine authored
-
Sterling Augustine authored
-
Weining Lu authored
-
Vasileios Porpodas authored
This reverts commit 5efa7898.
-
Vasileios Porpodas authored
-
Vasileios Porpodas authored
Splat loads are inexpensive in X86. For a 2-lane vector we need just one instruction: `movddup (%reg), xmm0`. Using the standard Splat score leads to worse code. This patch adds a new score dedicated for splat loads. Please note that a splat is usually three IR instructions: - It is usually a load and 2 inserts: %ld = load double, double* %gep %ins1 = insertelement <2 x double> poison, double %ld, i32 0 %ins2 = insertelement <2 x double> %ins1, double %ld, i32 1 - But it can also be a load, an insert and a shuffle: %ld = load double, double* %gep %ins = insertelement <2 x double> poison, double %ld, i32 0 %shf = shufflevector <2 x double> %ins, <2 x double> poison, <2 x i32> zeroinitializer Because of this some of the lit tests contain more IR instructions. Differential Revision: https://reviews.llvm.org/D121354
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D121353
-
Benjamin Kramer authored
-
Paul Kirth authored
This reverts commit 6cf560d6.
-
Nico Weber authored
-
Paul Kirth authored
I mistakenly reverted my commit, so I'm relanding it. This reverts commit 10866a1d.
-
Paul Kirth authored
This reverts commit e7749d47.
-
Paul Kirth authored
Reimplements MisExpect diagnostics from D66324 to reconstruct its original checking methodology only using MD_prof branch_weights metadata. New checks rely on 2 invariants: 1) For frontend instrumentation, MD_prof branch_weights will always be populated before llvm.expect intrinsics are lowered. 2) for IR and sample profiling, llvm.expect intrinsics will always be lowered before branch_weights are populated from the IR profiles. These invariants allow the checking to assume how the existing branch weights are populated depending on the profiling method used, and emit the correct diagnostics. If these invariants are ever invalidated, the MisExpect related checks would need to be updated, potentially by re-introducing MD_misexpect metadata, and ensuring it always will be transformed the same way as branch_weights in other optimization passes. Frontend based profiling is now enabled without using LLVM Args, by introducing a new CodeGen option, and checking if the -Wmisexpect flag has been passed on the command line. Differential Revision: https://reviews.llvm.org/D115907
-