diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2007-11-02 12:05:00 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2007-11-02 12:05:00 -0400 |
commit | e0e91e7ceb50f0e23311788559a8547dd24c7a80 (patch) | |
tree | 5598bb6fd54024d7ea3d302d786c1b55a27a510f /src/mesa/pipe/llvm/instructions.cpp | |
parent | 5c7bfb06e087ce4162590359ad75d1fca98f3549 (diff) |
Implement scs opcode
Diffstat (limited to 'src/mesa/pipe/llvm/instructions.cpp')
-rw-r--r-- | src/mesa/pipe/llvm/instructions.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/pipe/llvm/instructions.cpp b/src/mesa/pipe/llvm/instructions.cpp index 8e74ab3e94..c4a1b2d5c1 100644 --- a/src/mesa/pipe/llvm/instructions.cpp +++ b/src/mesa/pipe/llvm/instructions.cpp @@ -864,4 +864,15 @@ llvm::Value * Instructions::cos(llvm::Value *in) #endif } +llvm::Value * Instructions::scs(llvm::Value *in) +{ + llvm::Function *func = m_mod->getFunction("scs"); + assert(func); + + CallInst *call = m_builder.CreateCall(func, in, name("scsres")); + call->setTailCall(false); + return call; +} + #endif //MESA_LLVM + |