- Dec 15, 2022
-
-
Hanhan Wang authored
Reviewed By: nicolasvasilache, springerm Differential Revision: https://reviews.llvm.org/D139978
-
Florian Hahn authored
-
Koakuma authored
This adds some SPARC feature flags to clang, for those that we have in common with GCC: -m[no-]fpu -m[no-]fsmuld -m[no-]popc -m[no-]vis -m[no-]vis2 -m[no-]vis3 -m[hard/soft]-quad-float All have the same meanings as GCC's options (https://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html). This fixes, among other things, the -mno-fpu part of bug #40792 Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D139768
-
Michael Buch authored
**Summary** Starting with DWARFv5, DW_AT_default_value can be used to indicate that a template argument has a default value. With this patch LLVM will emit the this attribute earlier versions of DWARF, unless compiling with -gstrict-dwarf. Differential Revision: https://reviews.llvm.org/D139953
-
Michael Buch authored
**Summary** Starting with DWARFv5, DW_AT_default_value can be used to indicate that a template argument has a default value. With this patch Clang will attach the attribute to the debug metadata regardless of version. In a follow-up patch we will change llvm to emit this attribute in earlier versions of DWARF, unless compiling with -gstrict-dwarf. **Details** * Previously the DwarfVersion check in CGDebugInfo was inconsistent: For non-type template arguments we attached the attribute to the debug metadata in DWARFv5 only. Whereas for type template arguments we didn't have such a version restriction. With this patch we attach the attribute regardless of DWARF version (and instead offload the check to the AsmPrinter in a future patch).
-
wren romano authored
This allows allocaBuffer to be used outside of SparseTensorConversion.cpp, which will be helpful for a some future commits. Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D140047
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139961
-
Vasileios Porpodas authored
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D140054
-
Gulfem Savrun Yeniceri authored
This reverts commit 7734053f because it broke powerpc64 bot: https://lab.llvm.org/buildbot#builders/231/builds/6229
-
Matt Arsenault authored
-
Hendrik Greving authored
Adds a target hook canPredicatePredicatedInstr(const MachineInstr&) that assumes an instruction is already predicated and returns true if it can be predicated again, used by the early if-conversion pass in order to iterate multiple times on architectures supporting predicate logic. No test added since there is no upstream target that can take advantage. Differential Revision: https://reviews.llvm.org/D139981
-
Mark de Wever authored
Changes all unqualified calls to __throw_format_error to use a qualified call. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D140038
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D139983
-
Joshua Batista authored
Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D139742
-
Craig Topper authored
The other operands in this function had it and every other test in the file has it. So I assume this was a mistake.
-
Gulfem Savrun Yeniceri authored
This patch adds support for including binary ids in an indexed profile. It adds a new field into the header that points to the offset of the binary id section. The binary id section consists of a size of the section, and a list of binary ids (if they are present) that consist of two parts: length and data. This patch guarantees that indexed profile is backwards compatible after adding binary ids. Differential Revision: https://reviews.llvm.org/D135929
-
Matt Arsenault authored
-
Vasileios Porpodas authored
-
Matt Arsenault authored
Fixes issue 59413.
-
Craig Topper authored
On RV64 these instructions produce a 32-bit value and sign extend to 64-bits. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D140036
-
Simon Pilgrim authored
Avoid calling separate isa<> and cast<> if we can - dyn_cast<> can more efficiently check for a safe cast and give the casted pointer.
-
Dani Ferreira Franco Moura authored
This is a clean up following the revision D139868 (https://reviews.llvm.org/D139868). Reviewed By: gribozavr2, ymandel Differential Revision: https://reviews.llvm.org/D140037
-
Simon Pilgrim authored
[GVN] hasUsersIn - merge isa<> and cast<> into single dyn_cast<> and convert for-range loop to any_of() test. NFCI. Avoid running isa<> and cast<> if we can - dyn_cast<> can more efficiently check for a safe cast and give the casted pointer.
-
Wiktor Garbacz authored
Shadow memory was not marked as non-dumpable after a reset resulting in process taking a very long time to generate a coredump. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D139425
-
Vasileios Porpodas authored
-
Matt Arsenault authored
-
Quentin Colombet authored
These tests covers mulf, ori, and subi. NFC Differential Revision: https://reviews.llvm.org/D139625
-
Philip Reames authored
This is a follow up to patch discussion on D139656. As noted there, M2/M4/M8 versions of these instructions don't actually exist, and using them results in overly constrained register allocation. In that review, we'd talked about moving towards a variant of the instructions which ignored LMUL. I decided to see what happened if we just stopped generating the high LMUL variants, and the results are surprisingly neutral. I only see one minor thing which looks like a real regression among all the churn. I think this is worth doing now to loosen register allocation constraints, and avoid digging our hole around these instructions deeper while thinking about the right model change. Differential Revision: https://reviews.llvm.org/D140027
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D139982
-
Fangrui Song authored
Don't touch FileCheck.cpp:698 StringSwitch<Optional<binop_eval_t>>(FuncName). MSVC and older GCC may report errors: error C2664: 'llvm::StringSwitch<std::optional<llvm::binop_eval_t>,T> &llvm::StringSwitch<T,T>::Case(llvm::StringLiteral,T)': cannot convert argument 2 from 'overloaded-function' to 'T' with [ T=std::optional<llvm::binop_eval_t> ] llvm/lib/FileCheck/FileCheck.cpp:699:44: error: no matching function for call to ‘llvm::StringSwitch<std::optional<llvm::Expected<llvm::ExpressionValue> (*)(const llvm::ExpressionValue&, const llvm::ExpressionValue&)> >::Case(const char [4], <unresolved overloaded function type>)’ .Case("add", operator+) ^ -
Sam McCall authored
Differential Revision: https://reviews.llvm.org/D140029
-
Craig Topper authored
Instead of switching on the opcode in SExtWRemoval, we can use a bit in TSFlags. This reduces the amount of code that needs to be generated to implement the switch. The opcodes are scattered throughout the opcode enum, so the switch isn't very densely packed. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D139965
-
Kazu Hirata authored
The last use of Optional<T>::create was removed on December 10, 2022 in commit 1cb7fba3. Differential Revision: https://reviews.llvm.org/D139775
-
Dominic Chen authored
Differential Revision: https://reviews.llvm.org/D122761
-
Owen Pan authored
Differential Revision: https://reviews.llvm.org/D139999
-
Krzysztof Parzyszek authored
-
Vasileios Porpodas authored
We now have an adequate set of API functions, including BasicBlock::splice(), BasicBlock::erase(), Instruction::insertAt() etc. that we shouldn't need access to the underlying instruction list. Differential Revision: https://reviews.llvm.org/D139905
-
Slava Zakharin authored
The operations are converted into LLVM::PowIOp. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D129812
-
Johannes Doerfert authored
In https://reviews.llvm.org/D136745 we introduced the "pre-condition" that offsets should not be -1 or -2. This can easily break. The new special values are INT32_MAX and INT32_MIN, which we might want to replace with std::optional or flags instead.
-