added taskIndex_x,y,z and taskCount_x,y,z

This commit is contained in:
egaburov
2013-10-22 16:18:40 +02:00
parent e436e33771
commit 78a05777bc
4 changed files with 65 additions and 2 deletions

View File

@@ -2961,6 +2961,12 @@ FunctionType::LLVMFunctionType(llvm::LLVMContext *ctx, bool removeMask) const {
callTypes.push_back(LLVMTypes::Int32Type); // threadCount
callTypes.push_back(LLVMTypes::Int32Type); // taskIndex
callTypes.push_back(LLVMTypes::Int32Type); // taskCount
callTypes.push_back(LLVMTypes::Int32Type); // taskIndex_x
callTypes.push_back(LLVMTypes::Int32Type); // taskIndex_y
callTypes.push_back(LLVMTypes::Int32Type); // taskIndex_z
callTypes.push_back(LLVMTypes::Int32Type); // taskCount_x
callTypes.push_back(LLVMTypes::Int32Type); // taskCount_y
callTypes.push_back(LLVMTypes::Int32Type); // taskCount_z
}
else
// Otherwise we already have the types of the arguments