[llvm] a9136f0 - [Utils] Use std::remove_pointer_t (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 22 10:42:31 PDT 2023


Author: Kazu Hirata
Date: 2023-10-22T10:42:20-07:00
New Revision: a9136f0ad94bf7738c585c6d12ad5bbe1815f95b

URL: https://github.com/llvm/llvm-project/commit/a9136f0ad94bf7738c585c6d12ad5bbe1815f95b
DIFF: https://github.com/llvm/llvm-project/commit/a9136f0ad94bf7738c585c6d12ad5bbe1815f95b.diff

LOG: [Utils] Use std::remove_pointer_t (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
    llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Utils/SampleProfileInference.h b/llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
index b69468ee7e489f6..b4ea1ad840f9d92 100644
--- a/llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
+++ b/llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
@@ -119,7 +119,7 @@ void applyFlowInference(FlowFunction &Func);
 template <typename FT> class SampleProfileInference {
 public:
   using NodeRef = typename GraphTraits<FT *>::NodeRef;
-  using BasicBlockT = typename std::remove_pointer<NodeRef>::type;
+  using BasicBlockT = std::remove_pointer_t<NodeRef>;
   using FunctionT = FT;
   using Edge = std::pair<const BasicBlockT *, const BasicBlockT *>;
   using BlockWeightMap = DenseMap<const BasicBlockT *, uint64_t>;

diff  --git a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
index 21e85eede741e6c..66814d395273010 100644
--- a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
+++ b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
@@ -152,7 +152,7 @@ template <typename FT> class SampleProfileLoaderBaseImpl {
   void dump() { Reader->dump(); }
 
   using NodeRef = typename GraphTraits<FT *>::NodeRef;
-  using BT = typename std::remove_pointer<NodeRef>::type;
+  using BT = std::remove_pointer_t<NodeRef>;
   using InstructionT = typename afdo_detail::IRTraits<BT>::InstructionT;
   using BasicBlockT = typename afdo_detail::IRTraits<BT>::BasicBlockT;
   using BlockFrequencyInfoT =


        


More information about the llvm-commits mailing list