Lines Matching refs:caseValues

457                      DenseIntElementsAttr caseValues,  in build()  argument
460 build(builder, result, value, defaultOperands, caseOperands, caseValues, in build()
466 ArrayRef<APInt> caseValues, BlockRange caseDestinations, in build() argument
469 if (!caseValues.empty()) { in build()
471 static_cast<int64_t>(caseValues.size()), value.getType()); in build()
472 caseValuesAttr = DenseIntElementsAttr::get(caseValueType, caseValues); in build()
480 ArrayRef<int32_t> caseValues, BlockRange caseDestinations, in build() argument
483 if (!caseValues.empty()) { in build()
485 static_cast<int64_t>(caseValues.size()), value.getType()); in build()
486 caseValuesAttr = DenseIntElementsAttr::get(caseValueType, caseValues); in build()
498 DenseIntElementsAttr &caseValues, in parseSwitchOpCases() argument
541 caseValues = DenseIntElementsAttr::get(caseValueType, values); in parseSwitchOpCases()
549 DenseIntElementsAttr caseValues, SuccessorRange caseDestinations, in printSwitchOpCases() argument
554 if (!caseValues) in printSwitchOpCases()
557 for (const auto &it : llvm::enumerate(caseValues.getValues<APInt>())) { in printSwitchOpCases()
570 auto caseValues = getCaseValues(); in verify() local
573 if (!caseValues && caseDestinations.empty()) in verify()
577 Type caseValueType = caseValues->getType().getElementType(); in verify()
583 if (caseValues && in verify()
584 caseValues->size() != static_cast<int64_t>(caseDestinations.size())) in verify()
585 return emitOpError() << "number of case values (" << caseValues->size() in verify()
599 Optional<DenseIntElementsAttr> caseValues = getCaseValues(); in getSuccessorForOperands() local
601 if (!caseValues) in getSuccessorForOperands()
606 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) in getSuccessorForOperands()
644 auto caseValues = op.getCaseValues(); in dropSwitchCasesThatMatchDefault() local
647 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in dropSwitchCasesThatMatchDefault()
676 auto caseValues = op.getCaseValues(); in foldSwitch() local
677 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in foldSwitch()
721 auto caseValues = op.getCaseValues(); in simplifyPassThroughSwitch() local
722 argStorage.reserve(caseValues->size() + 1); in simplifyPassThroughSwitch()
725 for (int64_t i = 0, size = caseValues->size(); i < size; ++i) { in simplifyPassThroughSwitch()
748 defaultOperands, *caseValues, in simplifyPassThroughSwitch()
869 auto caseValues = op.getCaseValues(); in simplifySwitchFromDefaultSwitchOnSameCondition() local
871 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in simplifySwitchFromDefaultSwitchOnSameCondition()