Lines Matching refs:isNegative
326 Attribute Parser::parseFloatAttr(Type type, bool isNegative) { in parseFloatAttr() argument
341 return FloatAttr::get(type, isNegative ? -*val : *val); in parseFloatAttr()
346 static Optional<APInt> buildAttributeAPInt(Type type, bool isNegative, in buildAttributeAPInt() argument
372 if (isNegative) in buildAttributeAPInt()
374 } else if (isNegative) { in buildAttributeAPInt()
392 Attribute Parser::parseDecOrHexAttr(Type type, bool isNegative) { in parseDecOrHexAttr() argument
408 if (failed(parseFloatFromIntegerLiteral(result, tok, isNegative, in parseDecOrHexAttr()
419 if (isNegative && type.isUnsignedInteger()) { in parseDecOrHexAttr()
425 Optional<APInt> apInt = buildAttributeAPInt(type, isNegative, spelling); in parseDecOrHexAttr()
598 bool isNegative = signAndToken.first; in getIntAttrElements() local
602 if (isNegative && isUintType) { in getIntAttrElements()
627 buildAttributeAPInt(eltTy, isNegative, token.getSpelling()); in getIntAttrElements()
641 bool isNegative = signAndToken.first; in getFloatAttrElements() local
647 if (failed(p.parseFloatFromIntegerLiteral(result, token, isNegative, in getFloatAttrElements()
666 APFloat apVal(isNegative ? -*val : *val); in getFloatAttrElements()