- Dec 15, 2022
-
-
Sameer Sahasrabuddhe authored
This reverts commit 88db516a.
-
Michael Buch authored
This applies the same fix as in `ad3870d6` for `TestRerunAndExpr.py` to this test. D138724
-
Sameer Sahasrabuddhe authored
The arguments to a PHI may represent a recurrence by eventually using the output of the PHI itself. This is now handled by checking for cycles in the control flow. If a PHI is not in a recurrence, it is now able to report multiple offsets instead of conservatively reporting unknown. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138991
-
Quinn Dawkins authored
Conversion from gpu.subgroup_mma_constant_matrix to spirv.MatrixTimesScalar didn't check that the op type was a multiplication and thus would incorrectly convert other elementwise scalar operations. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D140081
-
Michael Buch authored
Followup to D139953 to fix build failure on machines not configured for x86. Differential Revision: https://reviews.llvm.org/D140084
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Shubham Sandeep Rastogi authored
This reverts commit 7dde9425. Because of test failures: lldb-shell :: SymbolFile/DWARF/x86/DW_AT_loclists_base.s lldb-shell :: SymbolFile/DWARF/x86/debug_loc.s lldb-shell :: SymbolFile/DWARF/x86/debug_loc_and_loclists.s lldb-shell :: SymbolFile/DWARF/x86/debug_loclists-dwo.s lldb-shell :: SymbolFile/DWARF/x86/debug_loclists-dwp.s lldb-shell :: SymbolFile/DWARF/x86/dwp.s lldb-shell :: SymbolFile/DWARF/x86/unused-inlined-params.test lldb-shell :: SymbolFile/NativePDB/inline_sites.test lldb-shell :: SymbolFile/NativePDB/local-variables-registers.s lldb-shell :: SymbolFile/NativePDB/nested-blocks-same-address.s
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Shubham Sandeep Rastogi authored
Differential Revision: https://reviews.llvm.org/D134817
-
Vasileios Porpodas authored
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, huixie90, #libc Spies: EricWF, libcxx-commits, royjacobson Differential Revision: https://reviews.llvm.org/D135016
-
Shubham Sandeep Rastogi authored
Emit unwind information in the .debug_frame section when the .cfi_sections .debug_frame directive is used. Differential Revision: https://reviews.llvm.org/D139663
-
Shubham Sandeep Rastogi authored
Revert "Emit unwind information in the .debug_frame section when the .cfi_sections .debug_frame directive is used." This reverts commit 28edf334. This is because: The Buildbot has detected a failed build on builder llvm-clang-x86_64-sie-ubuntu-fast while building llvm. Full details are available at: https://lab.llvm.org/buildbot#builders/139/builds/32856 Worker for this Build: sie-linux-worker Blamelist: Shubham Sandeep Rastogi <srastogi22@apple.com> BUILD FAILED: 40459 expected passes 83 expected failures 26251 unsupported tests 1 unexpected failures (failure) Step 6 (test-build-unified-tree-check-all) failure: 40459 expected passes 83 expected failures 26251 unsupported tests 1 unexpected failures (failure) ******************** TEST 'LLVM :: DebugInfo/debugframeinfo.s' FAILED ******************** Script: -- : 'RUN: at line 1'; /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/llvm-mc -filetype=obj -triple=arm64-apple-darwin22.1.0 /home/buildbot/buildbot-root/llvm-project/llvm/test/DebugInfo/debugframeinfo.s -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/test/DebugInfo/Output/debugframeinfo.s.tmp.o : 'RUN: at line 2'; /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/llvm-dwarfdump -debug-frame /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/test/DebugInfo/Output/debugframeinfo.s.tmp.o | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-project/llvm/test/DebugInfo/debugframeinfo.s -- Exit Code: 1 Command Output (stderr): -- /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/llvm-mc: error: unable to get target for 'arm64-apple-darwin22.1.0', see --version and --triple.
-
Shubham Sandeep Rastogi authored
Emit unwind information in the .debug_frame section when the .cfi_sections .debug_frame directive is used. Differential Revision: https://reviews.llvm.org/D139663
-
Jakub Kuderski authored
Check results of all type conversions in `--convert-arith-to-spirv`. Fixes: https://github.com/llvm/llvm-project/issues/59496 Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D140033
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D140064
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D140065
-
Craig Topper authored
As far as I can tell m_riscv_Features_Group is for options that can be passed to cc1's -target-feature. These mcmodel aliases aren't that. I think they get treated as aliases and disappear before we get to processing m_riscv_Features_Group so it didn't cause any problems. I've left them in m_Group to match mcmodel_EQ.
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D139984
-
Slava Zakharin authored
Exponentiation is lowered to either math::FPowI or Fortran runtime call (in case of --math-runtime=precise). MathToFuncs convertor will convert math::FPowI operations with exponent width >32 to calls of outlined implementations and otherwise will leave the operation to MathToLLVM convertor. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D139806
-
Nitin John Raj authored
We don’t have W versions of AND/OR/XOR/ANDN/ORN/XNOR so we should recursively check their users. We should limit the recursion to SelectionDAG::MaxRecursionDepth levels. We need to add a Depth argument, all existing callers should pass 0 to the Depth. The new recursive calls should increment it by 1. At the top of the function we should give up and return false if Depth >= SelectionDAG::MaxRecursionDepth. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D139462
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D140057
-
bixia1 authored
[mlir][sparse] Add another call to ConvertVectorToLLVMPass, to lower the vector operations added by ConvertMathToLLVMPass. Run sparse_tanh with vectorization. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139958
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D140052
-
Kazu Hirata authored
llvm::Optional<T> has transform, which is equivalent to std::optional<T>::transform. The problem is that std::optional<T>::transform won't be available until C++23, implying that we probably cannot use it in our codebase untli 2028 or so. We certainly don't want to keep llvm::Optional just for transform. This patch adds llvm::transformOptional to STLForwardCompat.h so that we can use transform during the migration to std::optional and beyond. I've shamelessly borrowed the implementation and test from llvm/include/llvm/ADT/Optional.h and llvm/unittests/ADT/OptionalTest.cpp respectively. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D139779
-
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
-