[PATCH] D47312: [NFC][VPlan] Wrap PlainCFGBuilder with an anonymous namespace.

Andrei Elovikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 24 02:10:14 PDT 2018


a.elovikov created this revision.
a.elovikov added reviewers: dcaballe, fhahn.
Herald added subscribers: rkruppe, tschuett, bollu, rengolin.

It's internal to the VPlanHCFGBuilder and should not be visible outside of its
translation unit.


Repository:
  rL LLVM

https://reviews.llvm.org/D47312

Files:
  lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp


Index: lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
===================================================================
--- lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
+++ lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
@@ -30,6 +30,7 @@
 
 using namespace llvm;
 
+namespace {
 // Class that is used to build the plain CFG for the incoming IR.
 class PlainCFGBuilder {
 private:
@@ -74,6 +75,7 @@
   // Build the plain CFG and return its Top Region.
   VPRegionBlock *buildPlainCFG();
 };
+} // anonymous namespace
 
 // Return true if \p Inst is an incoming Instruction to be ignored in the VPlan
 // representation.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47312.148357.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/bd3618eb/attachment.bin>


More information about the llvm-commits mailing list