summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-15 23:16:25 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-15 23:16:25 +0000
commitae6be764f9e3133932e61b779940106d8488a825 (patch)
tree6e40f0f2b8313814a148787b143cce9d1c46080b /utils
parent818b5f5dd7979b097564f829896353df286127ff (diff)
downloadllvm-ae6be764f9e3133932e61b779940106d8488a825.tar.gz
llvm-ae6be764f9e3133932e61b779940106d8488a825.tar.bz2
llvm-ae6be764f9e3133932e61b779940106d8488a825.tar.xz
Teach the Neon intrinsic generator to widen half-precision float types.
This isn't currently used for anything but I ran into it when experimenting with some changes, and it might be useful in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/NeonEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index 13bed47b4a..4864db4362 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -73,6 +73,8 @@ static char Widen(const char t) {
return 'i';
case 'i':
return 'l';
+ case 'h':
+ return 'f';
default: throw "unhandled type in widen!";
}
return '\0';