parent
0303396f4c
commit
f5024692d4
22 changed files with 15 additions and 1021 deletions
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script generates new definitions for the intrinsics using
|
||||
# clang. This is not currently in the Makefile to avoid any dependency
|
||||
# on clang.
|
||||
|
||||
for ARCH in i386 x86_64
|
||||
do
|
||||
if [ $ARCH = "i386" ]
|
||||
then
|
||||
BITS=32
|
||||
else
|
||||
BITS=64
|
||||
fi
|
||||
|
||||
clang++ -emit-llvm -S -m$BITS -O3 -Isrc/rt/isaac -Isrc/rt/uthash \
|
||||
-Isrc/rt/arch/$ARCH -Isrc/rt -fno-stack-protector \
|
||||
-o src/rt/intrinsics/intrinsics.$ARCH.ll.in \
|
||||
src/rt/intrinsics/intrinsics.cpp
|
||||
sed -i .orig \
|
||||
-e 's/^target datalayout =/; target datalayout =/' \
|
||||
src/rt/intrinsics/intrinsics.$ARCH.ll.in
|
||||
sed -i .orig \
|
||||
-e 's/^target triple = "[^"]*"/target triple = "@CFG_TARGET_TRIPLE@"/' \
|
||||
src/rt/intrinsics/intrinsics.$ARCH.ll.in
|
||||
rm src/rt/intrinsics/intrinsics.$ARCH.ll.in.orig
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue