mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
dd49dfc0df
llvm-svn: 28301
55 lines
2.0 KiB
TableGen
55 lines
2.0 KiB
TableGen
//===- ARMInstrInfo.td - Target Description for ARM Target ----------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by the "Instituto Nokia de Tecnologia" and
|
|
// is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file describes the ARM instructions in TableGen format.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Instructions
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
class InstARM<dag ops, string asmstr, list<dag> pattern> : Instruction {
|
|
let Namespace = "ARM";
|
|
|
|
dag OperandList = ops;
|
|
let AsmString = asmstr;
|
|
let Pattern = pattern;
|
|
}
|
|
|
|
def SDT_ARMCallSeq : SDTypeProfile<0, 1, [ SDTCisVT<0, i32> ]>;
|
|
def callseq_start : SDNode<"ISD::CALLSEQ_START", SDT_ARMCallSeq, [SDNPHasChain]>;
|
|
def callseq_end : SDNode<"ISD::CALLSEQ_END", SDT_ARMCallSeq, [SDNPHasChain]>;
|
|
|
|
def SDT_ARMRetFlag : SDTypeProfile<0, 0, []>;
|
|
def retflag : SDNode<"ARMISD::RET_FLAG", SDT_ARMRetFlag,
|
|
[SDNPHasChain, SDNPOptInFlag]>;
|
|
|
|
def ADJCALLSTACKUP : InstARM<(ops i32imm:$amt),
|
|
"!ADJCALLSTACKUP $amt",
|
|
[(callseq_end imm:$amt)]>;
|
|
|
|
def ADJCALLSTACKDOWN : InstARM<(ops i32imm:$amt),
|
|
"!ADJCALLSTACKDOWN $amt",
|
|
[(callseq_start imm:$amt)]>;
|
|
|
|
def ldr : InstARM<(ops IntRegs:$dst, IntRegs:$addr),
|
|
"ldr $dst, [$addr]",
|
|
[(set IntRegs:$dst, (load IntRegs:$addr))]>;
|
|
|
|
def str : InstARM<(ops IntRegs:$src, IntRegs:$addr),
|
|
"str $src, [$addr]",
|
|
[(store IntRegs:$src, IntRegs:$addr)]>;
|
|
|
|
def mov : InstARM<(ops IntRegs:$dst, IntRegs:$b),
|
|
"mov $dst, $b", []>;
|