platform/upstream/llvm.git
23 months ago[IR] Use std::optional in Statepoint.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:40:10 +0000 (14:40 -0800)]
[IR] Use std::optional in Statepoint.h (NFC)

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

23 months ago[IR] Use std::optional in ModuleSummaryIndex.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:40:08 +0000 (14:40 -0800)]
[IR] Use std::optional in ModuleSummaryIndex.h (NFC)

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

23 months ago[IR] Use std::optional in Instructions.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:40:07 +0000 (14:40 -0800)]
[IR] Use std::optional in Instructions.h (NFC)

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

23 months ago[IR] Use std::optional in InstrTypes.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:40:05 +0000 (14:40 -0800)]
[IR] Use std::optional in InstrTypes.h (NFC)

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

23 months ago[Support] Use std::optional in raw_ostream.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:12 +0000 (14:16 -0800)]
[Support] Use std::optional in raw_ostream.h (NFC)

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

23 months ago[Support] Use std::optional in ToolOutputFile.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:11 +0000 (14:16 -0800)]
[Support] Use std::optional in ToolOutputFile.h (NFC)

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

23 months ago[Support] Use std::optional in InstructionCost.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:09 +0000 (14:16 -0800)]
[Support] Use std::optional in InstructionCost.h (NFC)

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

23 months ago[Support] Use std::optional in InitLLVM.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:08 +0000 (14:16 -0800)]
[Support] Use std::optional in InitLLVM.h (NFC)

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

23 months ago[Support] Use std::optional in HashBuilder.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:06 +0000 (14:16 -0800)]
[Support] Use std::optional in HashBuilder.h (NFC)

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

23 months ago[Support] Use std::optional in GlobPattern.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:05 +0000 (14:16 -0800)]
[Support] Use std::optional in GlobPattern.h (NFC)

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

23 months ago[Support] Use std::optional in GenericDomTreeConstruction.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:03 +0000 (14:16 -0800)]
[Support] Use std::optional in GenericDomTreeConstruction.h (NFC)

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

23 months ago[Support] Use std::optional in CachePruning.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 22:16:01 +0000 (14:16 -0800)]
[Support] Use std::optional in CachePruning.h (NFC)

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

23 months agomlir/linalg: use std::optional
Ramkumar Ramachandra [Sun, 27 Nov 2022 21:32:20 +0000 (13:32 -0800)]
mlir/linalg: use std::optional

This is part of an effort to migrate from llvm::Optional to std::optional:

See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
23 months agomlir/VectorToGPU: use std::optional (NFC)
Ramkumar Ramachandra [Sun, 27 Nov 2022 21:32:18 +0000 (13:32 -0800)]
mlir/VectorToGPU: use std::optional (NFC)

This is part of an effort to migrate from llvm::Optional to std::optional:

See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
23 months ago[Analysis] Use std::optional in TensorSpec.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:28 +0000 (12:18 -0800)]
[Analysis] Use std::optional in TensorSpec.h (NFC)

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

23 months ago[Analysis] Use std::optional in TargetTransformInfo.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:26 +0000 (12:18 -0800)]
[Analysis] Use std::optional in TargetTransformInfo.h (NFC)

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

23 months ago[Analysis] Use std::optional in TargetLibraryInfo.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:24 +0000 (12:18 -0800)]
[Analysis] Use std::optional in TargetLibraryInfo.h (NFC)

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

23 months ago[Analysis] Use std::optional in ProfileSummaryInfo.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:23 +0000 (12:18 -0800)]
[Analysis] Use std::optional in ProfileSummaryInfo.h (NFC)

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

23 months ago[Analysis] Use std::optional in ObjCARCAnalysisUtils.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:21 +0000 (12:18 -0800)]
[Analysis] Use std::optional in ObjCARCAnalysisUtils.h (NFC)

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

23 months ago[Analysis] Use std::optional in ModuleSummaryAnalysis.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:20 +0000 (12:18 -0800)]
[Analysis] Use std::optional in ModuleSummaryAnalysis.h (NFC)

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

23 months ago[Analysis] Use std::optional in MemoryDependenceAnalysis.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:18 +0000 (12:18 -0800)]
[Analysis] Use std::optional in MemoryDependenceAnalysis.h (NFC)

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

23 months ago[Analysis] Use std::optional in MLInlineAdvisor.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:16 +0000 (12:18 -0800)]
[Analysis] Use std::optional in MLInlineAdvisor.h (NFC)

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

23 months ago[Analysis] Use std::optional in LoopCacheAnalysis.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:15 +0000 (12:18 -0800)]
[Analysis] Use std::optional in LoopCacheAnalysis.h (NFC)

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

23 months ago[Analysis] Use std::optional in LoopAccessAnalysis.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 20:18:13 +0000 (12:18 -0800)]
[Analysis] Use std::optional in LoopAccessAnalysis.h (NFC)

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

23 months ago[Analysis] Use std::optional in LazyCallGraph.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:49:06 +0000 (11:49 -0800)]
[Analysis] Use std::optional in LazyCallGraph.h (NFC)

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

23 months ago[Analysis] Use std::optional in InlineCost.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:49:04 +0000 (11:49 -0800)]
[Analysis] Use std::optional in InlineCost.h (NFC)

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

23 months ago[Analysis] Use std::optional in IRSimilarityIdentifier.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:49:03 +0000 (11:49 -0800)]
[Analysis] Use std::optional in IRSimilarityIdentifier.h (NFC)

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

23 months ago[Analysis] Use std::optional in DemandedBits.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:49:01 +0000 (11:49 -0800)]
[Analysis] Use std::optional in DemandedBits.h (NFC)

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

23 months ago[Analysis] Use std::optional in BlockFrequencyInfoImpl.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:49:00 +0000 (11:49 -0800)]
[Analysis] Use std::optional in BlockFrequencyInfoImpl.h (NFC)

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

23 months ago[Analysis] Use std::optional in BasicAliasAnalysis.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:48:58 +0000 (11:48 -0800)]
[Analysis] Use std::optional in BasicAliasAnalysis.h (NFC)

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

23 months ago[ADT] Use std::optional in TypeSwitch.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:48:57 +0000 (11:48 -0800)]
[ADT] Use std::optional in TypeSwitch.h (NFC)

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

23 months ago[ADT] Use std::optional in StringSwitch.h (NFC)
Kazu Hirata [Sun, 27 Nov 2022 19:48:55 +0000 (11:48 -0800)]
[ADT] Use std::optional in StringSwitch.h (NFC)

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

23 months ago[NFC][InstCombine] Drop "unused" check prefixes in newly added test
Roman Lebedev [Sun, 27 Nov 2022 19:21:29 +0000 (22:21 +0300)]
[NFC][InstCombine] Drop "unused" check prefixes in newly added test

23 months agoFixup last commit - actually stage check line updates
Roman Lebedev [Sun, 27 Nov 2022 18:58:36 +0000 (21:58 +0300)]
Fixup last commit - actually stage check line updates

23 months ago[NFC][InstCombine] Add test coverage for potential fold
Roman Lebedev [Sun, 27 Nov 2022 18:57:43 +0000 (21:57 +0300)]
[NFC][InstCombine] Add test coverage for potential fold

23 months agoApply clang-tidy fixes for modernize-use-equals-default in TestLinalgDecomposeOps...
Mehdi Amini [Thu, 17 Nov 2022 10:59:26 +0000 (10:59 +0000)]
Apply clang-tidy fixes for modernize-use-equals-default in TestLinalgDecomposeOps.cpp (NFC)

23 months agoApply clang-tidy fixes for bugprone-copy-constructor-init in TestLinalgDecomposeOps...
Mehdi Amini [Thu, 17 Nov 2022 10:58:48 +0000 (10:58 +0000)]
Apply clang-tidy fixes for bugprone-copy-constructor-init in TestLinalgDecomposeOps.cpp (NFC)

23 months agoReassociate: Convert tests to opaque pointers
Matt Arsenault [Sat, 26 Nov 2022 21:50:38 +0000 (16:50 -0500)]
Reassociate: Convert tests to opaque pointers

canonicalize-neg-const.ll had some issues. The script somehow decided
to delete half the run line and merge it with the example expression
(which it also deleted most of).

23 months agoVerifier: Update error message for opaque pointers
Matt Arsenault [Sun, 27 Nov 2022 17:55:30 +0000 (12:55 -0500)]
Verifier: Update error message for opaque pointers

23 months agoVerifier: Check ifunc resolver functions return a pointer
Matt Arsenault [Wed, 23 Nov 2022 22:33:27 +0000 (17:33 -0500)]
Verifier: Check ifunc resolver functions return a pointer

Clang and gcc both reject trying to use ifunc with a function which
doesn't return a pointer type. Some opaque pointer tests were using
this, apparently by accident.

23 months agollvm-reduce: Fix producing invalid reductions on ifunc
Matt Arsenault [Tue, 22 Nov 2022 21:31:43 +0000 (16:31 -0500)]
llvm-reduce: Fix producing invalid reductions on ifunc

23 months agoJumpThreading: Modernize some test checking
Matt Arsenault [Sun, 27 Nov 2022 16:42:45 +0000 (11:42 -0500)]
JumpThreading: Modernize some test checking

Stop using tests with grep, or no output checks at all. Just use
FileCheck and generate checks. Also remove unnecessary requires
asserts.

23 months ago[X86] Remove unnecessary VBLENDWYrr overrides
Simon Pilgrim [Sun, 27 Nov 2022 16:54:39 +0000 (16:54 +0000)]
[X86] Remove unnecessary VBLENDWYrr overrides

The znver2 override already matched the WriteBlendY class exactly, and the znver1 override wasn't accounting for ymm double-pumping.

Found with the help of D138359

23 months ago[Docs] Mention to add RUN line before running script to generate assertion
Shivam Gupta [Sun, 27 Nov 2022 15:43:03 +0000 (21:13 +0530)]
[Docs] Mention to add RUN line before running script to generate assertion

23 months ago[X86] Add test coverage for Issue #59217
Simon Pilgrim [Sun, 27 Nov 2022 16:37:17 +0000 (16:37 +0000)]
[X86] Add test coverage for Issue #59217

23 months agoJumpThreading: Convert tests to -passes
Matt Arsenault [Sun, 27 Nov 2022 16:18:35 +0000 (11:18 -0500)]
JumpThreading: Convert tests to -passes

23 months agoJumpThreading: Convert tests to opaque pointers
Matt Arsenault [Sun, 27 Nov 2022 16:12:33 +0000 (11:12 -0500)]
JumpThreading: Convert tests to opaque pointers

phi-known.ll:test2 required deleting one manual check for a bitcast

Also strip trailing whitespace while we're touching everything.

23 months ago[X86] Fix uops counts for SLM extract/extract-store instructions
Simon Pilgrim [Sun, 27 Nov 2022 16:16:36 +0000 (16:16 +0000)]
[X86] Fix uops counts for SLM extract/extract-store instructions

Matches Intel AoM + Agner

23 months agoScalarizer: Fix fragile test of constant pointer
Matt Arsenault [Sun, 27 Nov 2022 15:48:25 +0000 (10:48 -0500)]
Scalarizer: Fix fragile test of constant pointer

It was using a bitcast instruction of a global to test a constant
pointer. After the opaquify script, the test would fold away to
nothing. Add some return uses, and try to test constant base pointers
more meaningfully.

23 months agoCodeGenPrepare: Don't use anonymous values some in tests
Matt Arsenault [Sun, 27 Nov 2022 15:30:37 +0000 (10:30 -0500)]
CodeGenPrepare: Don't use anonymous values some in tests

These are always an obstacle to test updates, and often break after
running opaquify scripts on them.

23 months agoX86: Make test check more precise
Matt Arsenault [Sun, 27 Nov 2022 15:17:38 +0000 (10:17 -0500)]
X86: Make test check more precise

This is really checking an i8*, not an i8.

23 months agoCodeGenPrepare: Don't use undef base pointers in addressing mode test
Matt Arsenault [Sun, 27 Nov 2022 15:15:31 +0000 (10:15 -0500)]
CodeGenPrepare: Don't use undef base pointers in addressing mode test

This broke after the opaquify script.

23 months agoSeparateConstOffsetFromGEP: Switch tests to use -passes
Matt Arsenault [Sun, 27 Nov 2022 14:55:40 +0000 (09:55 -0500)]
SeparateConstOffsetFromGEP: Switch tests to use -passes

23 months agoUtils: Fix assume builder test using old name of null_pointer_is_valid
Matt Arsenault [Sat, 26 Nov 2022 20:56:26 +0000 (15:56 -0500)]
Utils: Fix assume builder test using old name of null_pointer_is_valid

Presumably this hasn't been testing the right thing since the
attribute was moved from a string attribute.

23 months ago[lld/mac] Covert start-lib.s test to use qualified paths instead of `cd %t`
Nico Weber [Sun, 27 Nov 2022 15:00:30 +0000 (10:00 -0500)]
[lld/mac] Covert start-lib.s test to use qualified paths instead of `cd %t`

Makes it easier to paste failing RUN lines to run them manually.
No behavior change.

23 months agoUtils: Don't use anonymous values in test
Matt Arsenault [Sat, 26 Nov 2022 20:49:50 +0000 (15:49 -0500)]
Utils: Don't use anonymous values in test

These interefered with opaque pointer conversion

23 months agoHotColdSplit: Don't use anonymous values in test
Matt Arsenault [Sat, 26 Nov 2022 22:45:32 +0000 (17:45 -0500)]
HotColdSplit: Don't use anonymous values in test

These were interfering with the conversion to opaque pointers

23 months agoSampleProfile: Don't use anonymous values in test
Matt Arsenault [Sun, 27 Nov 2022 14:40:00 +0000 (09:40 -0500)]
SampleProfile: Don't use anonymous values in test

These interfered with converting the test to opaque pointers.

23 months agoIndirectCallPromotion: Fix illegal promotion with opaque pointers
Matt Arsenault [Sun, 27 Nov 2022 14:23:21 +0000 (09:23 -0500)]
IndirectCallPromotion: Fix illegal promotion with opaque pointers

This was doing a type check on the argument types and skipping all
other safety checks if they matched.

23 months ago[AVR] Remove unused register scavenger
Ayke van Laethem [Wed, 23 Nov 2022 17:18:07 +0000 (18:18 +0100)]
[AVR] Remove unused register scavenger

The LPMW/ELPMW instruction can be modified to use an earlyclobber, which
prevents it from using the Z register as an output register.

Also see: https://reviews.llvm.org/D131844

Differential Revision: https://reviews.llvm.org/D117957

23 months ago[AVR] Add $ separator string (like avr-gcc)
Ayke van Laethem [Wed, 23 Nov 2022 01:10:22 +0000 (02:10 +0100)]
[AVR] Add $ separator string (like avr-gcc)

avr-gcc uses the $ symbol as an assembly separator instead of the more
common %% syntax. We need it in LLVM too to be compatible.

Differential Revision: https://reviews.llvm.org/D138535

23 months ago[AVR] Fix broken bitcast for aliases in non-zero address space
Ayke van Laethem [Thu, 24 Nov 2022 19:24:36 +0000 (20:24 +0100)]
[AVR] Fix broken bitcast for aliases in non-zero address space

This was triggered by some code in picolibc. The minimal version looks
like this:

    double infinity(void) {
       return 5;
    }

    extern long double infinityl() __attribute__((__alias__("infinity")));

These two declarations have a different type (not because of the 'long
double', which is also 'double' in IR, but because infinityl has
variadic parameters). This led to a crash in the bitcast which assumed
address space 0.

Differential Revision: https://reviews.llvm.org/D138681

23 months ago[AArch64] Add GPR rr instructions to isAssociativeAndCommutative
David Green [Sun, 27 Nov 2022 12:53:10 +0000 (12:53 +0000)]
[AArch64] Add GPR rr instructions to isAssociativeAndCommutative

This adds some more scalar instructions that are both associative and
commutative to isAssociativeAndCommutative, allowing the machine
combiner to reassociate them to reduce critical path length.

Differential Revision: https://reviews.llvm.org/D134260

23 months ago[Orc][examples] Temporarily re-enable tests for the C API and keep an eye on sanitize...
Stefan Gränitz [Sun, 27 Nov 2022 12:29:05 +0000 (13:29 +0100)]
[Orc][examples] Temporarily re-enable tests for the C API and keep an eye on sanitizer bots

This reverts commit 9c63e5b415d1d62116fec160c6ac1f3c00933ed9

23 months ago[Orc][examples] Emit artifacts in test-specific output folder (NFC)
Stefan Gränitz [Sun, 27 Nov 2022 12:24:03 +0000 (13:24 +0100)]
[Orc][examples] Emit artifacts in test-specific output folder (NFC)

23 months ago[lldb][JITLoaderGDB] Resolve __jit_debug_register_code as eSymbolTypeCode
Stefan Gränitz [Sat, 26 Nov 2022 23:05:06 +0000 (00:05 +0100)]
[lldb][JITLoaderGDB] Resolve __jit_debug_register_code as eSymbolTypeCode

Fix failling jit-loader tests with BUILD_SHARED_LIBS as discussed in https://github.com/llvm/llvm-project/issues/56085

Reviewed By: mgorny

Differential Revision: https://reviews.llvm.org/D138750

23 months ago[ELF] Simplify ObjFile<ELFT>::parseLazy. NFC
Fangrui Song [Sun, 27 Nov 2022 05:12:30 +0000 (21:12 -0800)]
[ELF] Simplify ObjFile<ELFT>::parseLazy. NFC

23 months ago[lld] Use std::optional in lld.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 05:03:34 +0000 (21:03 -0800)]
[lld] Use std::optional in lld.cpp (NFC)

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

23 months ago[MachO] Use std::optional in InputFiles.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 05:02:09 +0000 (21:02 -0800)]
[MachO] Use std::optional in InputFiles.cpp (NFC)

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

23 months ago[MachO] Use std::optional in ExportTrie.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 04:59:04 +0000 (20:59 -0800)]
[MachO] Use std::optional in ExportTrie.cpp (NFC)

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

23 months ago[COFF] Use std::optional in PDB.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 04:56:52 +0000 (20:56 -0800)]
[COFF] Use std::optional in PDB.cpp (NFC)

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

23 months ago[COFF] Use std::optional in InputFiles.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 04:54:36 +0000 (20:54 -0800)]
[COFF] Use std::optional in InputFiles.cpp (NFC)

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

23 months ago[COFF] Use std::optional in Driver.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 04:53:26 +0000 (20:53 -0800)]
[COFF] Use std::optional in Driver.cpp (NFC)

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

23 months ago[SPARC] Add tail call support for 64-bit target
Koakuma [Sun, 27 Nov 2022 04:29:05 +0000 (23:29 -0500)]
[SPARC] Add tail call support for 64-bit target

Extend SPARC tail call support, first introduced in D51206 (commit 1c235c375492180c2eecb6331f169486019fd2d2),
to also cover 64-bit target.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D138741

23 months ago[ELF] Change most llvm::Optional to std::optional
Fangrui Song [Sun, 27 Nov 2022 03:19:15 +0000 (19:19 -0800)]
[ELF] Change most llvm::Optional to std::optional

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

23 months ago[yaml2obj] Use std::optional in yaml2obj.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 03:09:32 +0000 (19:09 -0800)]
[yaml2obj] Use std::optional in yaml2obj.cpp (NFC)

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

23 months ago[obj2yaml] Use std::optional in elf2yaml.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 03:06:49 +0000 (19:06 -0800)]
[obj2yaml] Use std::optional in elf2yaml.cpp (NFC)

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

23 months ago[llvm-readobj] Use std::optional in ELFDumper.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 03:05:08 +0000 (19:05 -0800)]
[llvm-readobj] Use std::optional in ELFDumper.cpp (NFC)

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

23 months ago[llvm-profgen] Use std::optional in ProfiledBinary.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 03:01:24 +0000 (19:01 -0800)]
[llvm-profgen] Use std::optional in ProfiledBinary.cpp (NFC)

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

23 months ago[llvm-profdata] Use std::optional in llvm-profdata.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:59:41 +0000 (18:59 -0800)]
[llvm-profdata] Use std::optional in llvm-profdata.cpp (NFC)

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

23 months ago[llvm-objdump] Use std::optional in llvm-objdump.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:58:05 +0000 (18:58 -0800)]
[llvm-objdump] Use std::optional in llvm-objdump.cpp (NFC)

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

23 months ago[llvm-lipo] Use std::optional in llvm-lipo.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:53:51 +0000 (18:53 -0800)]
[llvm-lipo] Use std::optional in llvm-lipo.cpp (NFC)

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

23 months ago[llvm-ifs] Use std::optional in llvm-ifs.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:51:35 +0000 (18:51 -0800)]
[llvm-ifs] Use std::optional in llvm-ifs.cpp (NFC)

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

23 months ago[llvm-dwp] Use std::optional in llvm-dwp.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:49:27 +0000 (18:49 -0800)]
[llvm-dwp] Use std::optional in llvm-dwp.cpp (NFC)

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

23 months ago[llvm-cov] Use std::optional in SourceCoverageViewText.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:47:28 +0000 (18:47 -0800)]
[llvm-cov] Use std::optional in SourceCoverageViewText.cpp (NFC)

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

23 months ago[llvm-cov] Use std::optional in SourceCoverageViewHTML.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:45:08 +0000 (18:45 -0800)]
[llvm-cov] Use std::optional in SourceCoverageViewHTML.cpp (NFC)

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

23 months ago[llvm-cov] Use std::optional in CodeCoverage.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:42:47 +0000 (18:42 -0800)]
[llvm-cov] Use std::optional in CodeCoverage.cpp (NFC)

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

23 months ago[lli] Use std::optional in lli.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:39:27 +0000 (18:39 -0800)]
[lli] Use std::optional in lli.cpp (NFC)

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

23 months ago[dsymutil] Use std::optional in DwarfLinkerForBinary.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:36:55 +0000 (18:36 -0800)]
[dsymutil] Use std::optional in DwarfLinkerForBinary.cpp (NFC)

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

23 months ago[Vectorize] Use std::optional in VPlanSLP.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:11:32 +0000 (18:11 -0800)]
[Vectorize] Use std::optional in VPlanSLP.cpp (NFC)

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

23 months ago[Vectorize] Use std::optional in SLPVectorizer.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 02:03:49 +0000 (18:03 -0800)]
[Vectorize] Use std::optional in SLPVectorizer.cpp (NFC)

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

23 months ago[Utils] Use std::optional in SimplifyCFG.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:55:33 +0000 (17:55 -0800)]
[Utils] Use std::optional in SimplifyCFG.cpp (NFC)

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

23 months ago[Utils] Use std::optional in LoopPeel.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:53:17 +0000 (17:53 -0800)]
[Utils] Use std::optional in LoopPeel.cpp (NFC)

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

23 months ago[Utils] Use std::optional in Local.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:49:07 +0000 (17:49 -0800)]
[Utils] Use std::optional in Local.cpp (NFC)

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

23 months ago[Utils] Use std::optional in CloneFunction.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:44:44 +0000 (17:44 -0800)]
[Utils] Use std::optional in CloneFunction.cpp (NFC)

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

23 months ago[Scalar] Use std::optional in SimpleLoopUnswitch.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:41:52 +0000 (17:41 -0800)]
[Scalar] Use std::optional in SimpleLoopUnswitch.cpp (NFC)

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

23 months ago[Scalar] Use std::optional in ScalarizeMaskedMemIntrin.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:39:36 +0000 (17:39 -0800)]
[Scalar] Use std::optional in ScalarizeMaskedMemIntrin.cpp (NFC)

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

23 months ago[Scalar] Use std::optional in PartiallyInlineLibCalls.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:36:26 +0000 (17:36 -0800)]
[Scalar] Use std::optional in PartiallyInlineLibCalls.cpp (NFC)

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

23 months ago[Scalar] Use std::optional in LowerConstantIntrinsics.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:33:11 +0000 (17:33 -0800)]
[Scalar] Use std::optional in LowerConstantIntrinsics.cpp (NFC)

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

23 months ago[Scalar] Use std::optional in LoopUnrollPass.cpp (NFC)
Kazu Hirata [Sun, 27 Nov 2022 01:29:32 +0000 (17:29 -0800)]
[Scalar] Use std::optional in LoopUnrollPass.cpp (NFC)

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