Home
last modified time | relevance | path

Searched refs:InElt (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp861 Constant *InElt = GetVectorElement(Mask, i); in ConstantFoldShuffleVectorInstruction() local
862 if (InElt == 0) return 0; in ConstantFoldShuffleVectorInstruction()
864 if (isa<UndefValue>(InElt)) in ConstantFoldShuffleVectorInstruction()
865 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
866 else if (ConstantInt *CI = dyn_cast<ConstantInt>(InElt)) { in ConstantFoldShuffleVectorInstruction()
869 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
871 InElt = GetVectorElement(V2, Elt - SrcNumElts); in ConstantFoldShuffleVectorInstruction()
873 InElt = GetVectorElement(V1, Elt); in ConstantFoldShuffleVectorInstruction()
874 if (InElt == 0) return 0; in ConstantFoldShuffleVectorInstruction()
879 Result.push_back(InElt); in ConstantFoldShuffleVectorInstruction()
/external/llvm/lib/IR/
DConstantFold.cpp852 Constant *InElt; in ConstantFoldShuffleVectorInstruction() local
854 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
857 InElt = in ConstantFoldShuffleVectorInstruction()
862 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt)); in ConstantFoldShuffleVectorInstruction()
864 Result.push_back(InElt); in ConstantFoldShuffleVectorInstruction()