Commit c790416b by Ben Clayton

Reactor: Expose Capabilities.

Subzero is now lagging behind LLVM in terms of functionality. Stub a new Capabilities, pre-populated with the Call() feature (implemented in a follow-up change). With this we can skip tests that are known to not pass. Bug: b/130746922 Change-Id: I033b63034a6dccd31418b1d1898114adbd718025 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29409 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent 7945a51e
...@@ -452,6 +452,12 @@ namespace ...@@ -452,6 +452,12 @@ namespace
namespace rr namespace rr
{ {
const Capabilities Caps =
{
true, // CallSupported
};
#if REACTOR_LLVM_VERSION < 7 #if REACTOR_LLVM_VERSION < 7
class LLVMReactorJIT class LLVMReactorJIT
{ {
......
...@@ -34,6 +34,12 @@ ...@@ -34,6 +34,12 @@
namespace rr namespace rr
{ {
struct Capabilities
{
bool CallSupported; // Support for rr::Call()
};
extern const Capabilities Caps;
class Bool; class Bool;
class Byte; class Byte;
class SByte; class SByte;
......
...@@ -133,6 +133,11 @@ namespace ...@@ -133,6 +133,11 @@ namespace
namespace rr namespace rr
{ {
const Capabilities Caps =
{
false, // CallSupported
};
enum EmulatedType enum EmulatedType
{ {
EmulatedShift = 16, EmulatedShift = 16,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment