Lines Matching defs:constant

570 // 'size' is an Id of a constant or specialization constant of the array size
1449 // See if a scalar constant of this type has already been created, so it
1453 Instruction* constant;
1455 constant = groupedConstants[typeClass][i];
1456 if (constant->getOpCode() == opcode &&
1457 constant->getTypeId() == typeId &&
1458 constant->getImmediateOperand(0) == value)
1459 return constant->getResultId();
1468 Instruction* constant;
1470 constant = groupedConstants[typeClass][i];
1471 if (constant->getOpCode() == opcode &&
1472 constant->getTypeId() == typeId &&
1473 constant->getImmediateOperand(0) == v1 &&
1474 constant->getImmediateOperand(1) == v2)
1475 return constant->getResultId();
1481 // Return true if consuming 'opcode' means consuming a constant.
1482 // "constant" here means after final transform to executable code,
1483 // the value consumed will be a constant, so includes specialization.
1505 // Return true if consuming 'opcode' means consuming a specialization constant.
1533 Instruction* constant;
1538 constant = nullConstants[i];
1539 if (constant->getTypeId() == typeId)
1540 existing = constant->getResultId();
1558 Instruction* constant;
1566 constant = groupedConstants[OpTypeBool][i];
1567 if (constant->getTypeId() == typeId && constant->getOpCode() == opcode)
1568 existing = constant->getResultId();
1747 Instruction* constant = nullptr;
1750 constant = groupedConstants[typeClass][i];
1752 if (constant->getTypeId() != typeId)
1757 for (int op = 0; op < constant->getNumOperands(); ++op) {
1758 if (constant->getIdOperand(op) != comps[op]) {
1769 return found ? constant->getResultId() : NoResult;
1774 Instruction* constant = nullptr;
1777 constant = groupedStructConstants[typeId][i];
1781 for (int op = 0; op < constant->getNumOperands(); ++op) {
1782 if (constant->getIdOperand(op) != comps[op]) {
1793 return found ? constant->getResultId() : NoResult;
2494 // Generate code for spec constants if in spec constant operation
2511 // Generate code for spec constants if in spec constant operation
2526 // Generate code for spec constants if in spec constant operation
2542 // Generate code for spec constants if in spec constant operation
2658 // Generate code for spec constants if in spec constant operation
2672 // Generate code for spec constants if in spec constant operation
2689 // Generate code for spec constants if in spec constant operation
2847 // Sometime even in spec-constant-op mode, the temporary vector created by
2848 // promoting a scalar might not be a spec constant. This should depend on
2853 // is not a spec constant vector, even though the binary operation node is marked
2854 // as 'specConstant' and we are in spec-constant-op mode.
3235 // Sometime, even in spec-constant-op mode, the constant composite to be
3236 // constructed may not be a specialization constant.
3239 // The first column vector should be a spec constant one, as a_spec_const is a spec constant.
3240 // The second column vector should NOT be spec constant, as it does not contain any spec constants.
3241 // To handle such cases, we check the constituents of the constant vector to determine whether this
3242 // vector should be created as a spec constant.
3746 bool constant = true;
3751 constant = false;
3756 if (constant) {