[Hexagon] Add support for "new" circular buffer intrinsics
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 28 Mar 2018 19:40:57 +0000 (19:40 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 28 Mar 2018 19:40:57 +0000 (19:40 +0000)
commit1ef2a1f414e6e4fa093c003497937c4f781b4899
tree17f2ad2ef331458044458789e38ca263b22cdc59
parent440ba3ae5cbdefea5f4a03c39f149b9db96ccd55
[Hexagon] Add support for "new" circular buffer intrinsics

These instructions have been around for a long time, but we
haven't supported intrinsics for them. The "new" vesrions use
the CSx register for the start of the buffer instead of the K
field in the Mx register.

There is a related llvm patch.

Patch by Brendon Cahoon.

llvm-svn: 328725
clang/include/clang/Basic/BuiltinsHexagon.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-hexagon-circ.c [new file with mode: 0644]