LLVM API Documentation

AMDGPUTargetInfo.cpp
Go to the documentation of this file.
00001 //===-- TargetInfo/AMDGPUTargetInfo.cpp - TargetInfo for AMDGPU -----------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 /// \file
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "AMDGPUTargetMachine.h"
00015 #include "llvm/Support/TargetRegistry.h"
00016 
00017 using namespace llvm;
00018 
00019 /// \brief The target for the AMDGPU backend
00020 Target llvm::TheAMDGPUTarget;
00021 
00022 /// \brief Extern function to initialize the targets for the AMDGPU backend
00023 extern "C" void LLVMInitializeR600TargetInfo() {
00024   RegisterTarget<Triple::r600, false>
00025     R600(TheAMDGPUTarget, "r600", "AMD GPUs HD2XXX-HD6XXX");
00026 }