summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/llvm/storagesoa.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/llvm/storagesoa.h')
-rw-r--r--src/mesa/pipe/llvm/storagesoa.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/pipe/llvm/storagesoa.h b/src/mesa/pipe/llvm/storagesoa.h
index 43b23951deb..2d07e836f4b 100644
--- a/src/mesa/pipe/llvm/storagesoa.h
+++ b/src/mesa/pipe/llvm/storagesoa.h
@@ -38,6 +38,7 @@ namespace llvm {
class LoadInst;
class Value;
class VectorType;
+ class Module;
}
class StorageSoa
@@ -74,7 +75,9 @@ private:
int channel) const;
const char *name(const char *prefix) const;
llvm::ConstantInt *constantInt(int) const;
- llvm::Value *alignedArrayLoad(llvm::Value *val);
+ llvm::Value *alignedArrayLoad(llvm::Value *val);
+ llvm::Module *currentModule() const;
+ llvm::Value *createConstGlobalVector(float *vec);
private:
llvm::BasicBlock *m_block;
@@ -84,6 +87,8 @@ private:
llvm::Value *m_consts;
llvm::Value *m_temps;
+ std::map<int, std::vector<llvm::Value*> > m_immediates;
+
mutable std::map<int, llvm::ConstantInt*> m_constInts;
mutable char m_name[32];
mutable int m_idx;