[llvm] 0dacf3b - RISCVMatInt.h - remove unnecessary includes. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 10:40:53 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-08T18:25:24+01:00
New Revision: 0dacf3b5ac3a8c4079b781c788f758709345883f
URL: https://github.com/llvm/llvm-project/commit/0dacf3b5ac3a8c4079b781c788f758709345883f
DIFF: https://github.com/llvm/llvm-project/commit/0dacf3b5ac3a8c4079b781c788f758709345883f.diff
LOG: RISCVMatInt.h - remove unnecessary includes. NFCI.
Add APInt forward declaration and move include to RISCVMatInt.cpp
Added:
Modified:
llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp
llvm/lib/Target/RISCV/Utils/RISCVMatInt.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp b/llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp
index f390ddb89e3c..1f3dead61011 100644
--- a/llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp
+++ b/llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp
@@ -8,10 +8,8 @@
#include "RISCVMatInt.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/Support/MachineValueType.h"
+#include "llvm/ADT/APInt.h"
#include "llvm/Support/MathExtras.h"
-#include <cstdint>
namespace llvm {
diff --git a/llvm/lib/Target/RISCV/Utils/RISCVMatInt.h b/llvm/lib/Target/RISCV/Utils/RISCVMatInt.h
index b12ae2eade99..17ca57458b49 100644
--- a/llvm/lib/Target/RISCV/Utils/RISCVMatInt.h
+++ b/llvm/lib/Target/RISCV/Utils/RISCVMatInt.h
@@ -9,12 +9,11 @@
#ifndef LLVM_LIB_TARGET_RISCV_MATINT_H
#define LLVM_LIB_TARGET_RISCV_MATINT_H
-#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/Support/MachineValueType.h"
#include <cstdint>
namespace llvm {
+class APInt;
namespace RISCVMatInt {
struct Inst {
More information about the llvm-commits
mailing list