mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
AMDGPU.h - reduce TargetMachine.h include. NFC.
Replace TargetMachine.h include with forward declaration and CodeGen.h include in AMDGPU.h. Exposes a couple of implicit dependencies that require additional forward declarations/includes.
This commit is contained in:
parent
8fc62308ad
commit
98d9f094ab
@ -10,15 +10,16 @@
|
||||
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPU_H
|
||||
#define LLVM_LIB_TARGET_AMDGPU_AMDGPU_H
|
||||
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/IR/IntrinsicsR600.h" // TODO: Sink this.
|
||||
#include "llvm/IR/IntrinsicsAMDGPU.h" // TODO: Sink this.
|
||||
#include "llvm/Support/CodeGen.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class AMDGPUTargetMachine;
|
||||
class FunctionPass;
|
||||
class GCNTargetMachine;
|
||||
class ImmutablePass;
|
||||
class ModulePass;
|
||||
class Pass;
|
||||
class Target;
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include "AMDGPU.h"
|
||||
#include "llvm/IR/InstVisitor.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Transforms/Utils/CallPromotionUtils.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
@ -27,6 +27,7 @@ class AMDGPUTargetStreamer;
|
||||
class Argument;
|
||||
class DataLayout;
|
||||
class Function;
|
||||
class MachineFunction;
|
||||
class MDNode;
|
||||
class Module;
|
||||
struct SIProgramInfo;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "AMDGPU.h"
|
||||
#include "llvm/CodeGen/CallingConvLower.h"
|
||||
#include "llvm/CodeGen/TargetLowering.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/IR/ValueMap.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user