summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/storage.h
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-10-24 19:20:19 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-10-24 19:20:32 -0400
commit1c5fec714d30c02d6d00d95215c2e302c4c65cc3 (patch)
tree084ff82f7b39e25c17447ba211295f963fcf6b17 /src/mesa/pipe/llvm/storage.h
parent7636aac54bb357ce907ae6cc2c41f32957faecf3 (diff)
Simplify branch handling. Prepare for proper decleration extraction.
Diffstat (limited to 'src/mesa/pipe/llvm/storage.h')
-rw-r--r--src/mesa/pipe/llvm/storage.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mesa/pipe/llvm/storage.h b/src/mesa/pipe/llvm/storage.h
index bc8cffdf66..26b2579b07 100644
--- a/src/mesa/pipe/llvm/storage.h
+++ b/src/mesa/pipe/llvm/storage.h
@@ -60,8 +60,9 @@ public:
llvm::Value *inputElement(int idx, llvm::Value *indIdx =0);
llvm::Value *constElement(int idx, llvm::Value *indIdx =0);
- llvm::Value *tempElement(int idx) const;
+ llvm::Value *tempElement(int idx);
void setTempElement(int idx, llvm::Value *val, int mask);
+ void declareTemp(int idx);
llvm::Value *addrElement(int idx) const;
void setAddrElement(int idx, llvm::Value *val, int mask);
@@ -72,8 +73,6 @@ public:
void store(int dstIdx, llvm::Value *val, int mask);
- void popPhiNode();
-
int numConsts() const;
private:
llvm::Value *maskWrite(llvm::Value *src, int mask, llvm::Value *templ);
@@ -104,19 +103,6 @@ private:
int m_idx;
int m_numConsts;
-
- void addPhiNode(int, llvm::Value*, llvm::BasicBlock*,
- llvm::Value*, llvm::BasicBlock*);
- void updatePhiNode(int, llvm::Value*);
- struct PhiNode {
- llvm::Value *val1;
- llvm::BasicBlock *block1;
- llvm::Value *val2;
- llvm::BasicBlock *block2;
- };
-
- std::map<llvm::Value*, llvm::BasicBlock*> m_varBlocks;
- std::map<int, PhiNode> m_phiNodes;
};
#endif