diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-05-12 11:06:58 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-05-13 19:41:25 +0000 |
commit | 5cb19fd40ad3225005f65b6960c875746c2136b9 (patch) | |
tree | 272421ab53a41e6af1b4d7fd7375bf5799e71e29 /cpu_ref/rsd_cpu.h | |
parent | 6063b3ef8f88f5b4f29994b58ef0c883c4bea066 (diff) | |
download | rs-5cb19fd40ad3225005f65b6960c875746c2136b9.tar.gz |
Let vendor drivers access global-variable flags
bug 20894664
Expose flags for embedding global variables and skipping constant
globals in rsd_cpu.h. This allows vendor drivers to query or set these
flags.
Change-Id: I5c45355fb9254103ca8b0fa539edb691e6029ec7
Diffstat (limited to 'cpu_ref/rsd_cpu.h')
-rw-r--r-- | cpu_ref/rsd_cpu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu_ref/rsd_cpu.h b/cpu_ref/rsd_cpu.h index 84528281..adca82fb 100644 --- a/cpu_ref/rsd_cpu.h +++ b/cpu_ref/rsd_cpu.h @@ -147,6 +147,20 @@ public: RSSetupCompilerCallback pSetupCompilerCallback) = 0; virtual RSSetupCompilerCallback getSetupCompilerCallback() const = 0; #endif + + // Set to true if we should embed global variable information in the code. + virtual void setEmbedGlobalInfo(bool v) = 0; + + // Returns true if we should embed global variable information in the code. + virtual bool getEmbedGlobalInfo() const = 0; + + // Set to true if we should skip constant (immutable) global variables when + // potentially embedding information about globals. + virtual void setEmbedGlobalInfoSkipConstant(bool v) = 0; + + // Returns true if we should skip constant (immutable) global variables when + // potentially embedding information about globals. + virtual bool getEmbedGlobalInfoSkipConstant() const = 0; }; |