diff options
author | Fangrui Song <i@maskray.me> | 2022-12-13 09:06:36 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-13 09:06:36 +0000 |
commit | 67819a72c6ba39267effe8edfc1befddc3f3f2f9 (patch) | |
tree | 9a95db915f8eded88767ac3e9c31c8db045ab505 /llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp | |
parent | 48e6ff9ad3eb1971de6d7ba12e31754781aff675 (diff) | |
download | llvm-67819a72c6ba39267effe8edfc1befddc3f3f2f9.zip llvm-67819a72c6ba39267effe8edfc1befddc3f3f2f9.tar.gz llvm-67819a72c6ba39267effe8edfc1befddc3f3f2f9.tar.bz2 |
[CodeGen] llvm::Optional => std::optional
Diffstat (limited to 'llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp b/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp index 9ed72c9..387999d 100644 --- a/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp +++ b/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp @@ -45,7 +45,7 @@ TEST_F(AArch64GISelMITest, MatchIntConstantRegister) { if (!TM) return; auto MIBCst = B.buildConstant(LLT::scalar(64), 42); - Optional<ValueAndVReg> Src0; + std::optional<ValueAndVReg> Src0; bool match = mi_match(MIBCst.getReg(0), *MRI, m_GCst(Src0)); EXPECT_TRUE(match); EXPECT_EQ(Src0->VReg, MIBCst.getReg(0)); @@ -700,8 +700,8 @@ TEST_F(AArch64GISelMITest, MatchFPOrIntConst) { Register IntOne = B.buildConstant(LLT::scalar(64), 1).getReg(0); Register FPOne = B.buildFConstant(LLT::scalar(64), 1.0).getReg(0); - Optional<ValueAndVReg> ValReg; - Optional<FPValueAndVReg> FValReg; + std::optional<ValueAndVReg> ValReg; + std::optional<FPValueAndVReg> FValReg; EXPECT_TRUE(mi_match(IntOne, *MRI, m_GCst(ValReg))); EXPECT_EQ(IntOne, ValReg->VReg); @@ -723,7 +723,7 @@ TEST_F(AArch64GISelMITest, MatchConstantSplat) { Register FPOne = B.buildFConstant(s64, 1.0).getReg(0); Register FPZero = B.buildFConstant(s64, 0.0).getReg(0); Register Undef = B.buildUndef(s64).getReg(0); - Optional<FPValueAndVReg> FValReg; + std::optional<FPValueAndVReg> FValReg; // GFCstOrSplatGFCstMatch allows undef as part of splat. Undef often comes // from padding to legalize into available operation and then ignore added |