2004-06-22 00:55:25 +08:00
|
|
|
##===- lib/Target/PowerPC/Makefile -------------------------*- Makefile -*-===##
|
2009-01-10 00:44:42 +08:00
|
|
|
#
|
2004-06-22 00:55:25 +08:00
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-30 04:09:26 +08:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2009-01-10 00:44:42 +08:00
|
|
|
#
|
2004-06-22 00:55:25 +08:00
|
|
|
##===----------------------------------------------------------------------===##
|
2010-01-22 14:49:46 +08:00
|
|
|
|
2004-06-22 00:55:25 +08:00
|
|
|
LEVEL = ../../..
|
2008-08-17 21:54:44 +08:00
|
|
|
LIBRARYNAME = LLVMPowerPCCodeGen
|
2005-10-15 07:37:35 +08:00
|
|
|
TARGET = PPC
|
2004-08-06 02:34:15 +08:00
|
|
|
|
2004-06-22 00:55:25 +08:00
|
|
|
# Make sure that tblgen is run, first thing.
|
2013-05-04 03:49:39 +08:00
|
|
|
BUILT_SOURCES = PPCGenRegisterInfo.inc PPCGenAsmMatcher.inc \
|
2005-10-15 07:37:35 +08:00
|
|
|
PPCGenAsmWriter.inc PPCGenCodeEmitter.inc \
|
2007-03-06 08:59:59 +08:00
|
|
|
PPCGenInstrInfo.inc PPCGenDAGISel.inc \
|
2011-07-02 06:36:09 +08:00
|
|
|
PPCGenSubtargetInfo.inc PPCGenCallingConv.inc \
|
Implement a basic MCCodeEmitter for PPC. This doesn't handle
fixups yet, and doesn't handle actually encoding operand values,
but this is enough for llc -show-mc-encoding to show the base
instruction encoding information, e.g.:
mflr r0 ; encoding: [0x7c,0x08,0x02,0xa6]
stw r0, 8(r1) ; encoding: [0x90,0x00,0x00,0x00]
stwu r1, -64(r1) ; encoding: [0x94,0x00,0x00,0x00]
Ltmp0:
lhz r4, 4(r3) ; encoding: [0xa0,0x00,0x00,0x00]
cmplwi cr0, r4, 8 ; encoding: [0x28,0x00,0x00,0x00]
beq cr0, LBB0_2 ; encoding: [0x40,0x00,0x00,0x00]
llvm-svn: 119116
2010-11-15 12:16:32 +08:00
|
|
|
PPCGenMCCodeEmitter.inc
|
2004-06-22 00:55:25 +08:00
|
|
|
|
2013-05-04 03:49:39 +08:00
|
|
|
DIRS = AsmParser InstPrinter TargetInfo MCTargetDesc
|
2008-08-17 21:54:28 +08:00
|
|
|
|
2004-10-23 05:02:08 +08:00
|
|
|
include $(LEVEL)/Makefile.common
|