Skip to content
Snippets Groups Projects
Commit cf8137af authored by kotsifa2's avatar kotsifa2
Browse files

Bug fixes in dfg2llvm pass.

Code generation for VISC query intrinsics tested.
parent 5c2f443c
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,10 @@ namespace {
DEBUG(errs() << F_nvptx->getName() << "\t: Handling getNumDims\n");
// get node from map
// get the appropriate field
int numOfDim = Leaf_HandleToDFNodeMap[ArgII]->getNumOfDim();
ArgII = cast<IntrinsicInst>((II->getOperand(0))->stripPointerCasts());
ArgDFNode = Leaf_HandleToDFNodeMap[ArgII];
int numOfDim = ArgDFNode->getNumOfDim();
DEBUG(errs() << "\t Got node dimension : " << numOfDim << "\n");
IntegerType* IntTy = Type::getInt32Ty(getGlobalContext());
ConstantInt* numOfDimConstant = ConstantInt::getSigned(IntTy, (int64_t) numOfDim);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment