enable the R600 target

ok sthen@ brad@
This commit is contained in:
jsg 2013-08-06 23:33:44 +00:00
parent c200185f5b
commit b1ef8a8075
3 changed files with 37 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.64 2013/06/28 11:14:38 naddy Exp $ # $OpenBSD: Makefile,v 1.65 2013/08/06 23:33:44 jsg Exp $
# XXX: Remember to bump MODCLANG_VERSION in lang/clang/clang.port.mk when # XXX: Remember to bump MODCLANG_VERSION in lang/clang/clang.port.mk when
# updating this port. # updating this port.
@ -9,6 +9,7 @@ DPB_PROPERTIES = parallel
COMMENT = modular, fast C/C++/ObjC compiler, static analyzer and tools COMMENT = modular, fast C/C++/ObjC compiler, static analyzer and tools
LLVM_V = 3.3 LLVM_V = 3.3
REVISION = 0
DISTNAME = llvm-${LLVM_V}.src DISTNAME = llvm-${LLVM_V}.src
PKGNAME = llvm-${LLVM_V} PKGNAME = llvm-${LLVM_V}
CATEGORIES = devel CATEGORIES = devel
@ -46,7 +47,8 @@ SEPARATE_BUILD = Yes
CONFIGURE_ARGS = -DLLVM_ENABLE_FFI:Bool=False \ CONFIGURE_ARGS = -DLLVM_ENABLE_FFI:Bool=False \
-DLLVM_REQUIRES_RTTI:Bool=True \ -DLLVM_REQUIRES_RTTI:Bool=True \
-DCMAKE_BUILD_TYPE:String=Release \ -DCMAKE_BUILD_TYPE:String=Release \
-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2:Bool=True -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2:Bool=True \
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD:String=R600
# Workaround relocation overflow # Workaround relocation overflow
.if ${MACHINE_ARCH} == "powerpc" .if ${MACHINE_ARCH} == "powerpc"

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-lib_Target_R600_SIISelLowering_cpp,v 1.1 2013/08/06 23:33:44 jsg Exp $
llvm svn rev 182446
--- lib/Target/R600/SIISelLowering.cpp.orig Tue May 7 09:02:15 2013
+++ lib/Target/R600/SIISelLowering.cpp Sat Jul 20 00:30:00 2013
@@ -338,7 +338,7 @@ SDValue SITargetLowering::LowerBRCOND(SDValue BRCOND,
return Chain;
}
-#define RSRC_DATA_FORMAT 0xf00000000000
+const uint64_t RSRC_DATA_FORMAT = 0xf00000000000LL;
SDValue SITargetLowering::LowerSTORE(SDValue Op, SelectionDAG &DAG) const {
StoreSDNode *StoreNode = cast<StoreSDNode>(Op);
@@ -351,9 +351,9 @@ SDValue SITargetLowering::LowerSTORE(SDValue Op, Selec
return SDValue();
}
- SDValue SrcSrc = DAG.getNode(ISD::BUILD_PAIR, DL, MVT::i128,
- DAG.getConstant(0, MVT::i64),
- DAG.getConstant(RSRC_DATA_FORMAT, MVT::i64));
+ SDValue Zero = DAG.getConstant(0, MVT::i64);
+ SDValue Format = DAG.getConstant(RSRC_DATA_FORMAT, MVT::i64);
+ SDValue SrcSrc = DAG.getNode(ISD::BUILD_PAIR, DL, MVT::i128, Zero, Format);
SDValue Ops[2];
Ops[0] = DAG.getNode(AMDGPUISD::BUFFER_STORE, DL, MVT::Other, Chain,

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.18 2013/06/21 22:09:12 brad Exp $ @comment $OpenBSD: PLIST,v 1.19 2013/08/06 23:33:44 jsg Exp $
@bin bin/bugpoint @bin bin/bugpoint
bin/c++-analyzer bin/c++-analyzer
bin/ccc-analyzer bin/ccc-analyzer
@ -1156,6 +1156,10 @@ lib/libLLVMPowerPCAsmPrinter.a
lib/libLLVMPowerPCCodeGen.a lib/libLLVMPowerPCCodeGen.a
lib/libLLVMPowerPCDesc.a lib/libLLVMPowerPCDesc.a
lib/libLLVMPowerPCInfo.a lib/libLLVMPowerPCInfo.a
lib/libLLVMR600AsmPrinter.a
lib/libLLVMR600CodeGen.a
lib/libLLVMR600Desc.a
lib/libLLVMR600Info.a
lib/libLLVMRuntimeDyld.a lib/libLLVMRuntimeDyld.a
lib/libLLVMScalarOpts.a lib/libLLVMScalarOpts.a
lib/libLLVMSelectionDAG.a lib/libLLVMSelectionDAG.a