LLVM API Documentation

ARMTargetInfo.cpp
Go to the documentation of this file.
00001 //===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===//
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 #include "ARM.h"
00011 #include "llvm/IR/Module.h"
00012 #include "llvm/Support/TargetRegistry.h"
00013 using namespace llvm;
00014 
00015 Target llvm::TheARMTarget, llvm::TheThumbTarget;
00016 
00017 extern "C" void LLVMInitializeARMTargetInfo() { 
00018   RegisterTarget<Triple::arm, /*HasJIT=*/true>
00019     X(TheARMTarget, "arm", "ARM");
00020 
00021   RegisterTarget<Triple::thumb, /*HasJIT=*/true>
00022     Y(TheThumbTarget, "thumb", "Thumb");
00023 }