Skip to content

Commit

Permalink
Revert "[docs][NewPM] Add docs for writing NPM passes"
Browse files Browse the repository at this point in the history
This reverts commit c2590de.

Breaks shared libs build
  • Loading branch information
aeubanks committed Sep 14, 2020
1 parent 670c276 commit 39ec364
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 313 deletions.
5 changes: 0 additions & 5 deletions llvm/docs/UserGuides.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ intermediate LLVM representation.
TableGenFundamentals
Vectorizers
WritingAnLLVMPass
WritingAnLLVMNewPMPass
WritingAnLLVMBackend
yaml2obj

Expand Down Expand Up @@ -108,10 +107,6 @@ Optimizations
:doc:`WritingAnLLVMPass`
Information on how to write LLVM transformations and analyses.

:doc:`WritingAnLLVMNewPMPass`
Information on how to write LLVM transformations under the new pass
manager.

:doc:`Passes`
A list of optimizations and analyses implemented in LLVM.

Expand Down
209 changes: 0 additions & 209 deletions llvm/docs/WritingAnLLVMNewPMPass.rst

This file was deleted.

4 changes: 0 additions & 4 deletions llvm/docs/WritingAnLLVMPass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ We start by showing you how to construct a pass, everything from setting up the
code, to compiling, loading, and executing it. After the basics are down, more
advanced features are discussed.

This document deals with the legacy pass manager. LLVM is transitioning to
the new pass manager, which has its own way of defining passes. For more
details, see :doc:`WritingAnLLVMNewPMPass`.

Quick Start --- Writing hello world
===================================

Expand Down
23 changes: 0 additions & 23 deletions llvm/include/llvm/Transforms/HelloNew/HelloWorld.h

This file was deleted.

2 changes: 1 addition & 1 deletion llvm/lib/Passes/LLVMBuild.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
type = Library
name = Passes
parent = Libraries
required_libraries = AggressiveInstCombine Analysis Core Coroutines HelloNew IPO InstCombine ObjCARC Scalar Support Target TransformUtils Vectorize Instrumentation
required_libraries = AggressiveInstCombine Analysis Core Coroutines IPO InstCombine ObjCARC Scalar Support Target TransformUtils Vectorize Instrumentation
1 change: 0 additions & 1 deletion llvm/lib/Passes/PassBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
#include "llvm/Transforms/Coroutines/CoroEarly.h"
#include "llvm/Transforms/Coroutines/CoroElide.h"
#include "llvm/Transforms/Coroutines/CoroSplit.h"
#include "llvm/Transforms/HelloNew/HelloWorld.h"
#include "llvm/Transforms/IPO/AlwaysInliner.h"
#include "llvm/Transforms/IPO/ArgumentPromotion.h"
#include "llvm/Transforms/IPO/Attributor.h"
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Passes/PassRegistry.def
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ FUNCTION_PASS("ee-instrument", EntryExitInstrumenterPass(/*PostInlining=*/false)
FUNCTION_PASS("make-guards-explicit", MakeGuardsExplicitPass())
FUNCTION_PASS("post-inline-ee-instrument", EntryExitInstrumenterPass(/*PostInlining=*/true))
FUNCTION_PASS("gvn-hoist", GVNHoistPass())
FUNCTION_PASS("helloworld", HelloWorldPass())
FUNCTION_PASS("instcombine", InstCombinePass())
FUNCTION_PASS("instcount", InstCountPass())
FUNCTION_PASS("instsimplify", InstSimplifyPass())
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ add_subdirectory(Scalar)
add_subdirectory(IPO)
add_subdirectory(Vectorize)
add_subdirectory(Hello)
add_subdirectory(HelloNew)
add_subdirectory(ObjCARC)
add_subdirectory(Coroutines)
add_subdirectory(CFGuard)
6 changes: 0 additions & 6 deletions llvm/lib/Transforms/HelloNew/CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions llvm/lib/Transforms/HelloNew/HelloWorld.cpp

This file was deleted.

22 changes: 0 additions & 22 deletions llvm/lib/Transforms/HelloNew/LLVMBuild.txt

This file was deleted.

2 changes: 1 addition & 1 deletion llvm/lib/Transforms/LLVMBuild.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
;===------------------------------------------------------------------------===;

[common]
subdirectories = AggressiveInstCombine Coroutines HelloNew IPO InstCombine Instrumentation Scalar Utils Vectorize ObjCARC CFGuard
subdirectories = AggressiveInstCombine Coroutines IPO InstCombine Instrumentation Scalar Utils Vectorize ObjCARC CFGuard

[component_0]
type = Group
Expand Down
12 changes: 0 additions & 12 deletions llvm/test/Transforms/HelloNew/helloworld.ll

This file was deleted.

1 change: 0 additions & 1 deletion llvm/utils/gn/secondary/llvm/lib/Passes/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ static_library("Passes") {
"//llvm/lib/Target",
"//llvm/lib/Transforms/AggressiveInstCombine",
"//llvm/lib/Transforms/Coroutines",
"//llvm/lib/Transforms/HelloNew",
"//llvm/lib/Transforms/IPO",
"//llvm/lib/Transforms/InstCombine",
"//llvm/lib/Transforms/Instrumentation",
Expand Down
9 changes: 0 additions & 9 deletions llvm/utils/gn/secondary/llvm/lib/Transforms/HelloNew/BUILD.gn

This file was deleted.

0 comments on commit 39ec364

Please sign in to comment.