Remove support for the old-style intrinsics

Closes #2042
Closes #1981
This commit is contained in:
Marijn Haverbeke 2012-03-23 11:51:06 +01:00
parent 0303396f4c
commit f5024692d4
22 changed files with 15 additions and 1021 deletions

View file

@ -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