diff --git a/hpvm/include/SupportVISC/VISCUtils.h b/hpvm/include/SupportVISC/VISCUtils.h index 109a8cee8c3326c0a48dcce776e0c46db200dc54..9b9f813e95df55d85fd64cdf1eed39f89b24e5d7 100644 --- a/hpvm/include/SupportVISC/VISCUtils.h +++ b/hpvm/include/SupportVISC/VISCUtils.h @@ -102,44 +102,6 @@ IntrinsicInst* createIdenticalCreateNodeIntrinsicWithDifferentFunction(Function* IntrinsicInst* CreateNodeII = cast<IntrinsicInst>(CI); return CreateNodeII; } -/* -CallInst* createIdenticalCreateNodeCallWithDifferentFunction(Function* F, - CallInst* CI) { - - // Find which createNode function call we need to create - Function* CreateNodeF = CI->getCalledValue(); - - ArrayRef<Value*> CreateNodeArgs; - if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode")) { - // This is a createNode call - CreateNodeArgs = ArrayRef<Value*>(CreateNodeF); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode1D")) { - // This is a createNode1D call - Value* CreateNode1DArgs[] = {CreateNodeF, CI->getArgOperand(1)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode1DArgs, 2); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode2D")) { - // This is a createNode2D call - Value* CreateNode2DArgs[] = {CreateNodeF, - CI->getArgOperand(1), - CI->getArgOperand(2)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode2DArgs, 3); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode3D")) { - // This is a createNode3D call - Value* CreateNode3DArgs[] = {CreateNodeF, - CI->getArgOperand(1), - CI->getArgOperand(2), - CI->getArgOperand(3)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode3DArgs, 4); - } else { - assert(false && "Unknown createNode call"); - } - - CallInst* newCI = CallInst::Create(CreateNodeF, - CreateNodeArgs, - F->getName()+".cncall"); - return newCI; -} -*/ // Fix VISC hints for this function void fixHintMetadata(Module &M, Function* F, Function* G) {