summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/llvm/instructions.cpp
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-10-20 16:59:37 -0400
committerZack Rusin <[email protected]>2007-10-24 11:21:04 -0400
commit3b772a277fe032c94654648d0671ff42fd3fdce6 (patch)
treea322affe2d400b965dd7204400bcb729db9c5e19 /src/mesa/pipe/llvm/instructions.cpp
parentd4d8d7c468c8ba45e302e163dd87b4e45426e1da (diff)
Make lit work but in a very lame way - will have to be rewritten.
Diffstat (limited to 'src/mesa/pipe/llvm/instructions.cpp')
-rw-r--r--src/mesa/pipe/llvm/instructions.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/pipe/llvm/instructions.cpp b/src/mesa/pipe/llvm/instructions.cpp
index 3105c49bccc..5a40888696f 100644
--- a/src/mesa/pipe/llvm/instructions.cpp
+++ b/src/mesa/pipe/llvm/instructions.cpp
@@ -167,7 +167,7 @@ llvm::Value *Instructions::callFAbs(llvm::Value *val)
llvm::Value * Instructions::lit(llvm::Value *in)
{
-#if 1
+#if 0
printVector(in);
return in;
@@ -191,7 +191,7 @@ llvm::Value * Instructions::lit(llvm::Value *in)
m_llvmLit = makeLitFunction(m_mod);
}
CallInst *call = new CallInst(m_llvmLit, in, name("litres"), m_block);
- //call->setCallingConv(CallingConv::C);
+ call->setCallingConv(CallingConv::C);
call->setTailCall(false);
return call;
#endif
@@ -897,8 +897,3 @@ void Instructions::printVector(llvm::Value *val)
call->setCallingConv(CallingConv::C);
call->setTailCall(true);
}
-
-llvm::Value * Instructions::swizzleWrite(llvm::Value *in, int mask)
-{
-
-}