]> granicus.if.org Git - clang/commit
[PPC] Make altivec conversion function macros.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 30 May 2017 11:37:29 +0000 (11:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 30 May 2017 11:37:29 +0000 (11:37 +0000)
commitbccb6a479f9f7afe6912c97223cb0489a231c63c
tree1733a75ab96f1598f10d74202ba25656e3786cd0
parent14af7897308db385738c41134ea4521443cb9b95
[PPC] Make altivec conversion function macros.

The second argument must be a constant, otherwise instruction selection
will fail. always_inline is not enough for isel to always fold
everything away at -O0.

Sadly the overloading turned this into a big macro mess. Fixes PR33212.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/altivec.h
test/CodeGen/altivec-ct.c [new file with mode: 0644]