Skip to content

Commit b365dbb

Browse files
authored
[DXIL][Analysis] Move dxil::ResourceInfo to the Analysis library. NFC
I had put this in Transforms/Utils, but that doesn't actually make sense if we want to populate these structures via an analysis pass. Pull Request: #100621
1 parent 88fb56e commit b365dbb

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

llvm/include/llvm/Transforms/Utils/DXILResource.h renamed to llvm/include/llvm/Analysis/DXILResource.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===- DXILResource.h - Tools to translate DXIL resources -------*- C++ -*-===//
1+
//===- DXILResource.h - Representations of DXIL resources -------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_TRANSFORMS_UTILS_DXILRESOURCE_H
10-
#define LLVM_TRANSFORMS_UTILS_DXILRESOURCE_H
9+
#ifndef LLVM_ANALYSIS_DXILRESOURCE_H
10+
#define LLVM_ANALYSIS_DXILRESOURCE_H
1111

1212
#include "llvm/IR/Metadata.h"
1313
#include "llvm/IR/Value.h"
@@ -188,4 +188,4 @@ class ResourceInfo {
188188
} // namespace dxil
189189
} // namespace llvm
190190

191-
#endif // LLVM_TRANSFORMS_UTILS_DXILRESOURCE_H
191+
#endif // LLVM_ANALYSIS_DXILRESOURCE_H

llvm/lib/Analysis/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ add_llvm_component_library(LLVMAnalysis
5959
DomPrinter.cpp
6060
DomTreeUpdater.cpp
6161
DominanceFrontier.cpp
62+
DXILResource.cpp
6263
FunctionPropertiesAnalysis.cpp
6364
GlobalsModRef.cpp
6465
GuardUtils.cpp

llvm/lib/Transforms/Utils/DXILResource.cpp renamed to llvm/lib/Analysis/DXILResource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===- DXILResource.cpp - Tools to translate DXIL resources ---------------===//
1+
//===- DXILResource.cpp - Representations of DXIL resources ---------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "llvm/Transforms/Utils/DXILResource.h"
9+
#include "llvm/Analysis/DXILResource.h"
1010
#include "llvm/ADT/APInt.h"
1111
#include "llvm/IR/DerivedTypes.h"
1212

llvm/lib/Transforms/Utils/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ add_llvm_component_library(LLVMTransformUtils
2020
CountVisits.cpp
2121
Debugify.cpp
2222
DemoteRegToStack.cpp
23-
DXILResource.cpp
2423
DXILUpgrade.cpp
2524
EntryExitInstrumenter.cpp
2625
EscapeEnumerator.cpp

llvm/unittests/Analysis/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set(ANALYSIS_TEST_SOURCES
2424
ConstraintSystemTest.cpp
2525
DDGTest.cpp
2626
DomTreeUpdaterTest.cpp
27+
DXILResourceTest.cpp
2728
GlobalsModRefTest.cpp
2829
FunctionPropertiesAnalysisTest.cpp
2930
InlineCostTest.cpp

llvm/unittests/Transforms/Utils/DXILResourceTest.cpp renamed to llvm/unittests/Analysis/DXILResourceTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "llvm/Transforms/Utils/DXILResource.h"
9+
#include "llvm/Analysis/DXILResource.h"
1010
#include "llvm/IR/Constants.h"
1111
#include "gtest/gtest.h"
1212

llvm/unittests/Transforms/Utils/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ add_llvm_unittest(UtilsTests
1818
CodeLayoutTest.cpp
1919
CodeMoverUtilsTest.cpp
2020
DebugifyTest.cpp
21-
DXILResourceTest.cpp
2221
FunctionComparatorTest.cpp
2322
IntegerDivisionTest.cpp
2423
LocalTest.cpp

0 commit comments

Comments
 (0)