diff --git a/llvm/include/llvm/Transforms/Utils/KnowledgeRetention.h b/llvm/include/llvm/IR/KnowledgeRetention.h rename from llvm/include/llvm/Transforms/Utils/KnowledgeRetention.h rename to llvm/include/llvm/IR/KnowledgeRetention.h diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt --- a/llvm/lib/IR/CMakeLists.txt +++ b/llvm/lib/IR/CMakeLists.txt @@ -28,6 +28,7 @@ Instruction.cpp Instructions.cpp IntrinsicInst.cpp + KnowledgeRetention.cpp LLVMContext.cpp LLVMContextImpl.cpp LLVMRemarkStreamer.cpp diff --git a/llvm/lib/Transforms/Utils/KnowledgeRetention.cpp b/llvm/lib/IR/KnowledgeRetention.cpp rename from llvm/lib/Transforms/Utils/KnowledgeRetention.cpp rename to llvm/lib/IR/KnowledgeRetention.cpp --- a/llvm/lib/Transforms/Utils/KnowledgeRetention.cpp +++ b/llvm/lib/IR/KnowledgeRetention.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Transforms/Utils/KnowledgeRetention.h" +#include "llvm/IR/KnowledgeRetention.h" #include "llvm/ADT/DenseSet.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/IntrinsicInst.h" diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -59,6 +59,7 @@ #include "llvm/CodeGen/UnreachableBlockElim.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/IRPrintingPasses.h" +#include "llvm/IR/KnowledgeRetention.h" #include "llvm/IR/PassManager.h" #include "llvm/IR/SafepointIRVerifier.h" #include "llvm/IR/Verifier.h" @@ -179,7 +180,6 @@ #include "llvm/Transforms/Utils/CanonicalizeAliases.h" #include "llvm/Transforms/Utils/EntryExitInstrumenter.h" #include "llvm/Transforms/Utils/InjectTLIMappings.h" -#include "llvm/Transforms/Utils/KnowledgeRetention.h" #include "llvm/Transforms/Utils/LCSSA.h" #include "llvm/Transforms/Utils/LibCallsShrinkWrap.h" #include "llvm/Transforms/Utils/LoopSimplify.h" diff --git a/llvm/lib/Transforms/Utils/CMakeLists.txt b/llvm/lib/Transforms/Utils/CMakeLists.txt --- a/llvm/lib/Transforms/Utils/CMakeLists.txt +++ b/llvm/lib/Transforms/Utils/CMakeLists.txt @@ -29,7 +29,6 @@ InjectTLIMappings.cpp InstructionNamer.cpp IntegerDivision.cpp - KnowledgeRetention.cpp LCSSA.cpp LibCallsShrinkWrap.cpp Local.cpp diff --git a/llvm/test/Transforms/Util/assume-builder.ll b/llvm/test/IR/assume-builder.ll rename from llvm/test/Transforms/Util/assume-builder.ll rename to llvm/test/IR/assume-builder.ll diff --git a/llvm/unittests/IR/CMakeLists.txt b/llvm/unittests/IR/CMakeLists.txt --- a/llvm/unittests/IR/CMakeLists.txt +++ b/llvm/unittests/IR/CMakeLists.txt @@ -24,6 +24,7 @@ IRBuilderTest.cpp InstructionsTest.cpp IntrinsicsTest.cpp + KnowledgeRetentionTest.cpp LegacyPassManagerTest.cpp MDBuilderTest.cpp ManglerTest.cpp diff --git a/llvm/unittests/Transforms/Utils/KnowledgeRetentionTest.cpp b/llvm/unittests/IR/KnowledgeRetentionTest.cpp rename from llvm/unittests/Transforms/Utils/KnowledgeRetentionTest.cpp rename to llvm/unittests/IR/KnowledgeRetentionTest.cpp --- a/llvm/unittests/Transforms/Utils/KnowledgeRetentionTest.cpp +++ b/llvm/unittests/IR/KnowledgeRetentionTest.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Transforms/Utils/KnowledgeRetention.h" +#include "llvm/IR/KnowledgeRetention.h" #include "llvm/AsmParser/Parser.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/LLVMContext.h" diff --git a/llvm/unittests/Transforms/Utils/CMakeLists.txt b/llvm/unittests/Transforms/Utils/CMakeLists.txt --- a/llvm/unittests/Transforms/Utils/CMakeLists.txt +++ b/llvm/unittests/Transforms/Utils/CMakeLists.txt @@ -15,7 +15,6 @@ CodeMoverUtilsTest.cpp FunctionComparatorTest.cpp IntegerDivisionTest.cpp - KnowledgeRetentionTest.cpp LocalTest.cpp LoopRotationUtilsTest.cpp LoopUtilsTest.cpp