Skip to content

Commit bc2d0a8

Browse files
author
git apple-llvm automerger
committed
Merge commit '0481d2a1614d' from llvm.org/main into next
2 parents 2190e2c + 0481d2a commit bc2d0a8

File tree

13 files changed

+0
-342
lines changed

13 files changed

+0
-342
lines changed

llvm/docs/WritingAnLLVMPass.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -442,28 +442,6 @@ in certain circumstances (such as calling the ``Pass::dump()`` from a
442442
debugger), so it should only be used to enhance debug output, it should not be
443443
depended on.
444444

445-
Scheduling a MachineFunctionPass
446-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
447-
448-
Backends create a ``TargetPassConfig`` and use ``addPass`` to schedule
449-
``MachineFunctionPass``\ es. External plugins can register a callback to modify
450-
and insert additional passes:
451-
452-
.. code-block:: c++
453-
454-
RegisterTargetPassConfigCallback X{[](auto &TM, auto &PM, auto *TPC) {
455-
TPC->insertPass(/* ... */);
456-
TPC->substitutePass(/* ... */);
457-
}};
458-
459-
Note that passes still have to be registered:
460-
461-
.. code-block:: c++
462-
463-
__attribute__((constructor)) static void initCodeGenPlugin() {
464-
initializeExamplePass(*PassRegistry::getPassRegistry());
465-
}
466-
467445
.. _writing-an-llvm-pass-interaction:
468446

469447
Specifying interactions between passes

llvm/include/llvm/Target/RegisterTargetPassConfigCallback.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

llvm/lib/CodeGen/CodeGenTargetMachineImpl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "llvm/MCCAS/MCCASObjectV1.h"
3333
#include "llvm/Support/CommandLine.h"
3434
#include "llvm/Support/FormattedStream.h"
35-
#include "llvm/Target/RegisterTargetPassConfigCallback.h"
3635
#include "llvm/Target/TargetMachine.h"
3736
#include "llvm/Target/TargetOptions.h"
3837
using namespace llvm;
@@ -125,7 +124,6 @@ addPassesToGenerateCode(CodeGenTargetMachineImpl &TM, PassManagerBase &PM,
125124
PassConfig->setDisableVerify(DisableVerify);
126125
PM.add(PassConfig);
127126
PM.add(&MMIWP);
128-
invokeGlobalTargetPassConfigCallbacks(TM, PM, PassConfig);
129127

130128
if (PassConfig->addISelPasses())
131129
return nullptr;

llvm/lib/Target/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
33
list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
44

55
add_llvm_component_library(LLVMTarget
6-
RegisterTargetPassConfigCallback.cpp
76
Target.cpp
87
TargetLoweringObjectFile.cpp
98
TargetMachine.cpp

llvm/lib/Target/RegisterTargetPassConfigCallback.cpp

Lines changed: 0 additions & 39 deletions
This file was deleted.

llvm/test/Other/codegen-plugin-loading.ll

Lines changed: 0 additions & 7 deletions
This file was deleted.

llvm/unittests/CodeGen/CGPluginTest/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

llvm/unittests/CodeGen/CGPluginTest/Plugin/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp

Lines changed: 0 additions & 34 deletions
This file was deleted.

llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)