/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
H A D | RISCVTargetParser.h | 84 inline static RISCVII::VLMUL getVLMUL(unsigned VType) { in getVLMUL() argument 85 unsigned VLMUL = VType & 0x7; in getVLMUL() 108 inline static unsigned getSEW(unsigned VType) { in getSEW() argument 109 unsigned VSEW = (VType >> 3) & 0x7; in getSEW() 113 inline static bool isTailAgnostic(unsigned VType) { return VType & 0x40; } in isTailAgnostic() argument 115 inline static bool isMaskAgnostic(unsigned VType) { return VType & 0x80; } in isMaskAgnostic() argument 117 void printVType(unsigned VType, raw_ostream &OS);
|
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
H A D | RISCVTargetParser.cpp | 189 void printVType(unsigned VType, raw_ostream &OS) { in printVType() argument 190 unsigned Sew = getSEW(VType); in printVType() 195 std::tie(LMul, Fractional) = decodeVLMUL(getVLMUL(VType)); in printVType() 203 if (isTailAgnostic(VType)) in printVType() 208 if (isMaskAgnostic(VType)) in printVType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVInsertVSETVLI.cpp | 668 void setVTYPE(unsigned VType) { in setVTYPE() argument 671 VLMul = RISCVVType::getVLMUL(VType); in setVTYPE() 672 SEW = RISCVVType::getSEW(VType); in setVTYPE() 673 TailAgnostic = RISCVVType::isTailAgnostic(VType); in setVTYPE() 674 MaskAgnostic = RISCVVType::isMaskAgnostic(VType); in setVTYPE() 1635 auto VType = MI.getOperand(2).getImm(); in canMutatePriorConfig() local 1636 return areCompatibleVTYPEs(PriorVType, VType, Used); in canMutatePriorConfig()
|
H A D | RISCVInstrInfo.cpp | 239 unsigned VType = MBBI->getOperand(2).getImm(); in isConvertibleToVMV_V_V() local 243 if (RISCVVType::getSEW(VType) != FirstSEW) in isConvertibleToVMV_V_V() 248 if (!RISCVVType::isTailAgnostic(VType)) in isConvertibleToVMV_V_V() 256 return LMul == RISCVVType::getVLMUL(VType); in isConvertibleToVMV_V_V() 2995 // Print the full VType operand of vsetvli/vsetivli instructions, and the SEW in createMIROperandComment()
|
H A D | RISCVInstrInfoVPseudos.td | 387 // {SEW, VLMul} values set a valid VType to deal with this mask type.
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
H A D | RISCVAsmParser.cpp | 339 VType, enumerator 401 struct VTypeOp VType; member 432 case KindTy::VType: in RISCVOperand() 433 VType = o.VType; in RISCVOperand() 592 return Kind == KindTy::VType; in isVTypeI10() 597 return Kind == KindTy::VType; in isVTypeI11() 1035 assert(Kind == KindTy::VType && "Invalid type access!"); in getVType() 1036 return VType.Val; in getVType() 1072 case KindTy::VType: in print() 1169 auto Op = std::make_unique<RISCVOperand>(KindTy::VType); in createVType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LowerMatrixIntrinsics.cpp | 554 VectorType *VType = dyn_cast<VectorType>(MatrixVal->getType()); in getMatrix() local 555 assert(VType && "MatrixVal must be a vector type"); in getMatrix() 556 assert(cast<FixedVectorType>(VType)->getNumElements() == in getMatrix() 578 MaskStart < cast<FixedVectorType>(VType)->getNumElements(); in getMatrix() 1126 auto *VType = cast<VectorType>(Ty); in loadMatrix() local 1127 Type *EltTy = VType->getElementType(); in loadMatrix() 1208 auto VType = cast<VectorType>(Ty); in storeMatrix() local 1215 Stride, StoreVal.getStride(), VType->getElementType(), Builder); in storeMatrix() 1218 VType->getElementType(), in storeMatrix()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 1337 auto *VType = cast<FixedVectorType>(II->getOperand(0)->getType()); in shouldExpandReduction() local 1341 return VType->getScalarSizeInBits() >= 64 || in shouldExpandReduction() 1342 VType->getPrimitiveSizeInBits() < SystemZ::VectorBits; in shouldExpandReduction()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 1121 static llvm::Value *EmitIsNegativeTestHelper(Value *V, QualType VType, in EmitIsNegativeTestHelper() argument 1124 bool VSigned = VType->isSignedIntegerOrEnumerationType(); in EmitIsNegativeTestHelper() 2037 llvm::VectorType *VType = in VisitInitListExpr() local 2040 if (!VType) { in VisitInitListExpr() 2049 if (isa<llvm::ScalableVectorType>(VType)) { in VisitInitListExpr() 2066 unsigned ResElts = cast<llvm::FixedVectorType>(VType)->getNumElements(); in VisitInitListExpr() 2075 llvm::Value *V = llvm::PoisonValue::get(VType); in VisitInitListExpr() 2188 llvm::Type *EltTy = VType->getElementType(); in VisitInitListExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaInit.cpp | 923 } else if (const VectorType *VType = ILE->getType()->getAs<VectorType>()) { in FillInEmptyInitializations() local 924 ElementType = VType->getElementType(); in FillInEmptyInitializations() 925 NumElements = VType->getNumElements(); in FillInEmptyInitializations() 3406 } else if (const VectorType *VType = CurrentObjectType->getAs<VectorType>()) { in createInitListExpr() local 3407 NumElements = VType->getNumElements(); in createInitListExpr()
|
H A D | SemaOpenMP.cpp | 9767 QualType VType = LastIteration.get()->getType(); in checkOpenMPLoop() local 9768 QualType RealVType = VType; in checkOpenMPLoop() 9769 QualType StrideVType = VType; in checkOpenMPLoop() 9771 VType = in checkOpenMPLoop() 9817 VarDecl *LBDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.lb"); in checkOpenMPLoop() 9818 LB = buildDeclRefExpr(SemaRef, LBDecl, VType, InitLoc); in checkOpenMPLoop() 9824 VarDecl *UBDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.ub"); in checkOpenMPLoop() 9825 UB = buildDeclRefExpr(SemaRef, UBDecl, VType, InitLoc); in checkOpenMPLoop() 9864 buildVarDecl(SemaRef, InitLoc, VType, ".omp.comb.lb"); in checkOpenMPLoop() 9865 CombLB = buildDeclRefExpr(SemaRef, CombLBDecl, VType, InitLoc); in checkOpenMPLoop() [all …]
|