2012-12-11 21:25:42 +00:00
|
|
|
//===-- AMDGPU.h - MachineFunction passes hw codegen --------------*- C++ -*-=//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef AMDGPU_H
|
|
|
|
#define AMDGPU_H
|
|
|
|
|
2013-06-07 20:28:43 +00:00
|
|
|
#include "AMDILDeviceInfo.h"
|
2012-12-11 21:25:42 +00:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class FunctionPass;
|
|
|
|
class AMDGPUTargetMachine;
|
|
|
|
|
|
|
|
// R600 Passes
|
2013-05-17 16:50:20 +00:00
|
|
|
FunctionPass* createR600TextureIntrinsicsReplacer();
|
2012-12-11 21:25:42 +00:00
|
|
|
FunctionPass* createR600KernelParametersPass(const DataLayout *TD);
|
2013-06-05 21:38:04 +00:00
|
|
|
FunctionPass *createR600VectorRegMerger(TargetMachine &tm);
|
2012-12-11 21:25:42 +00:00
|
|
|
FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm);
|
2013-04-01 21:47:42 +00:00
|
|
|
FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm);
|
2013-04-30 00:14:27 +00:00
|
|
|
FunctionPass *createR600Packetizer(TargetMachine &tm);
|
2013-04-01 21:48:05 +00:00
|
|
|
FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm);
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
// SI Passes
|
2012-12-19 22:10:31 +00:00
|
|
|
FunctionPass *createSIAnnotateControlFlowPass();
|
2012-12-11 21:25:42 +00:00
|
|
|
FunctionPass *createSILowerControlFlowPass(TargetMachine &tm);
|
|
|
|
FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
|
2013-01-18 21:15:53 +00:00
|
|
|
FunctionPass *createSIInsertWaits(TargetMachine &tm);
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
// Passes common to R600 and SI
|
2012-12-19 22:10:31 +00:00
|
|
|
Pass *createAMDGPUStructurizeCFGPass();
|
2012-12-11 21:25:42 +00:00
|
|
|
FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm);
|
2013-02-06 17:32:29 +00:00
|
|
|
FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm);
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
|
|
|
namespace ShaderType {
|
|
|
|
enum Type {
|
|
|
|
PIXEL = 0,
|
|
|
|
VERTEX = 1,
|
|
|
|
GEOMETRY = 2,
|
|
|
|
COMPUTE = 3
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // AMDGPU_H
|