Gabe Black has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/41998 )

Change subject: arch: Remove unnecessary "typename"s from VecPredRegT.
......................................................................

arch: Remove unnecessary "typename"s from VecPredRegT.

Change-Id: If38e71ac79105b111d68df1e572f9a8e32a131ad
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41998
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/arch/generic/vec_pred_reg.hh
1 file changed, 5 insertions(+), 7 deletions(-)

Approvals:
  Gabe Black: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/arch/generic/vec_pred_reg.hh b/src/arch/generic/vec_pred_reg.hh
index 84047f6..b238357 100644
--- a/src/arch/generic/vec_pred_reg.hh
+++ b/src/arch/generic/vec_pred_reg.hh
@@ -88,16 +88,14 @@

     /// Reset the register to an all-false value.
     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, void>
-    reset() { container.reset(); }
+    std::enable_if_t<Condition> reset() { container.reset(); }

     /// Reset the register to an all-true value.
     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, void>
-    set() { container.set(); }
+    std::enable_if_t<Condition> set() { container.set(); }

     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, MyClass&>
+    std::enable_if_t<Condition, MyClass&>
     operator=(const MyClass& that)
     {
         container = that.container;
@@ -111,7 +109,7 @@
     }

     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, bool&>
+    std::enable_if_t<Condition, bool&>
     operator[](size_t idx)
     {
         return container[idx * (Packed ? 1 : sizeof(VecElem))];
@@ -128,7 +126,7 @@

     /// Write a raw value in an element of the predicate register
     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, void>
+    std::enable_if_t<Condition>
     set_raw(size_t idx, uint8_t val)
     {
         container.set_bits(idx * (Packed ? 1 : sizeof(VecElem)),

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/41998
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: If38e71ac79105b111d68df1e572f9a8e32a131ad
Gerrit-Change-Number: 41998
Gerrit-PatchSet: 9
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to