Home
last modified time | relevance | path

Searched refs:constantValue (Results 1 – 25 of 30) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderSpec.cpp78 auto sel = cond.constantValue[condIsScalar ? 0 : i]; in EvalSpecConstantOp()
79 result.constantValue[i] = sel ? left.constantValue[i] : right.constantValue[i]; in EvalSpecConstantOp()
92 result.constantValue[i] = compositeObject.constantValue[firstComponent + i]; in EvalSpecConstantOp()
107 result.constantValue[i] = oldObject.constantValue[i]; in EvalSpecConstantOp()
112 result.constantValue[firstNewComponent + i] = newPart.constantValue[i]; in EvalSpecConstantOp()
117 result.constantValue[i] = oldObject.constantValue[i]; in EvalSpecConstantOp()
134 result.constantValue[i] = 0; in EvalSpecConstantOp()
138 result.constantValue[i] = firstHalf.constantValue[selector]; in EvalSpecConstantOp()
142 … result.constantValue[i] = secondHalf.constantValue[selector - getType(firstHalf).componentCount]; in EvalSpecConstantOp()
166 auto &v = result.constantValue[i]; in EvalSpecConstantUnaryOp()
[all …]
DSpirvShader.cpp327 CreateConstant(insn).constantValue[0] = insn.word(3);
331 CreateConstant(insn).constantValue[0] = 0; // Represent Boolean false as zero.
335 CreateConstant(insn).constantValue[0] = ~0u; // Represent Boolean true as all bits set.
346 object.constantValue[i] = 0;
361 object.constantValue[offset++] = constituent.constantValue[j];
379 executionModes.WorkgroupSizeX = object.constantValue[0];
380 executionModes.WorkgroupSizeY = object.constantValue[1];
381 executionModes.WorkgroupSizeZ = object.constantValue[2];
848 object.constantValue.resize(objectTy.componentCount); in CreateConstant()
2316 …auto memorySemantics = static_cast<spv::MemorySemanticsMask>(getObject(semanticsId).constantValue[… in EmitAtomicOp()
[all …]
DSpirvShaderMemory.cpp52 …auto memorySemantics = static_cast<spv::MemorySemanticsMask>(getObject(semanticsId).constantValue[… in EmitLoad()
82 …auto memorySemantics = static_cast<spv::MemorySemanticsMask>(getObject(semanticsId).constantValue[… in EmitStore()
DSpirvShader.hpp333 std::vector<uint32_t> constantValue; member in sw::SpirvShader::Object
/third_party/mesa3d/src/amd/compiler/
Daco_assembler.cpp80 ctx.constaddrs[instr->operands[0].constantValue()].getpc_end = out.size() + 1; in emit_instruction()
85 ctx.constaddrs[instr->operands[2].constantValue()].add_literal = out.size() + 1; in emit_instruction()
91 instr->operands[1] = Operand::literal32(instr->operands[1].constantValue()); in emit_instruction()
192 } else if (instr->operands[1].constantValue() >= 1024) { in emit_instruction()
195 encoding |= instr->operands[1].constantValue() >> 2; in emit_instruction()
202 instr->operands[1].constantValue() >= 1024) in emit_instruction()
203 out.push_back(instr->operands[1].constantValue() >> 2); in emit_instruction()
247 offset = op_off1.isConstant() ? op_off1.constantValue() : op_off1.physReg(); in emit_instruction()
252 offset = op_off1.constantValue(); in emit_instruction()
343 encoding |= (0x3 & instr->operands[0].constantValue()); in emit_instruction()
[all …]
Daco_optimizer.cpp215 val = Operand::c64(constant).constantValue(); in set_constant()
721 if (!literal32.isUndefined() && literal32.constantValue() != op.constantValue()) in check_vop3_operands()
723 if (!literal64.isUndefined() && literal64.constantValue() != op.constantValue()) in check_vop3_operands()
791 *offset = add_instr->operands[i].constantValue() * (uint32_t)(is_sub ? -1 : 1); in parse_base_offset()
997 } else if (bits == 16 && const_lo.constantValue() == (const_hi.constantValue() ^ (1 << 15))) { in propagate_constants_vop3p()
1004 instr->operands[i] = Operand::c16(const_lo.constantValue() & 0x7FFF); in propagate_constants_vop3p()
1005 bool neg_lo = const_lo.constantValue() & (1 << 15); in propagate_constants_vop3p()
1028 unsigned size = instr->operands[2].constantValue() / 8; in parse_extract()
1029 unsigned offset = instr->operands[1].constantValue() * size; in parse_extract()
1036 unsigned offset = instr->operands[1].constantValue() * size; in parse_extract()
[all …]
Daco_lower_to_hw_instr.cpp721 identity[i].constantValue()) { /* bound_ctrl should take care of this overwise */ in emit_reduction()
1046 uint32_t imm = op.constantValue(); in copy_constant()
1094 uint8_t val = op.constantValue(); in copy_constant()
1106 if (op.constantValue() >= 0xfff0 || op.constantValue() <= 64) { in copy_constant()
1109 uint32_t val32 = (int32_t)(int16_t)op.constantValue(); in copy_constant()
1128 swiz[dst.physReg().byte()] = op.constantValue() & 0xff ? bperm_255 : bperm_0; in copy_constant()
1130 swiz[dst.physReg().byte() + 1] = op.constantValue() >> 8 ? bperm_255 : bperm_0; in copy_constant()
1135 uint32_t val = (op.constantValue() << offset) & mask; in copy_constant()
1437 copy_constant(ctx, bld, def, Operand::c32(lo.constantValue() | (hi.constantValue() << 16))); in do_pack_2x16()
1454 (!hi.isConstant() || !Operand::c32(hi.constantValue()).isLiteral() || in do_pack_2x16()
[all …]
Daco_lower_phis.cpp168 if (!cur.constantValue()) { in build_merge_code()
182 if (cur.constantValue()) in build_merge_code()
204 defined = phi->operands[i].constantValue() ? pred_defined::const_1 : pred_defined::const_0; in init_any_pred_defined()
Daco_opt_value_numbering.cpp57 hash = murmur_32_scramble(hash, op.constantValue()); in hash_murmur_32()
131 if (a->operands[i].constantValue() != b->operands[i].constantValue()) in operator ()()
Daco_validate.cpp298 literal.constantValue() == op.constantValue()), in validate_ir()
413 check((instr->operands[1].constantValue() + 1) * instr->definitions[0].bytes() <= in validate_ir()
500 unsigned op_bits = instr->operands[2].constantValue(); in validate_ir()
513 check(instr->operands[1].constantValue() < comp, "Index must be in-bounds", in validate_ir()
Daco_print_ir.cpp161 fprintf(output, "0x%.2x", operand->constantValue()); in aco_print_operand()
163 fprintf(output, "0x%.4x", operand->constantValue()); in aco_print_operand()
165 fprintf(output, "0x%x", operand->constantValue()); in aco_print_operand()
Daco_ir.h778 constexpr uint32_t constantValue() const noexcept { return data_.i; } in constantValue() function
782 return isConstant() && constantValue() == cmp; in constantEquals()
869 return other.isLiteral() && other.constantValue() == constantValue();
Daco_spill.cpp1487 uint32_t spill_id = spill->operands[1].constantValue(); in spill_vgpr()
1531 uint32_t spill_id = reload->operands[0].constantValue(); in reload_vgpr()
1769 uint32_t spill_id = (*it)->operands[1].constantValue(); in assign_spill_slots()
1812 uint32_t spill_id = (*it)->operands[0].constantValue(); in assign_spill_slots()
Daco_insert_exec_mask.cpp578 assert(instr->operands[0].constantValue() == -1u); in process_instructions()
633 assert(instr->operands[0].constantValue() == -1u); in process_instructions()
Daco_register_allocation.cpp2619 uint32_t value = instr->operands[literal_idx].constantValue(); in optimize_encoding_sopk()
2636 instr_sopk->imm = instr_sopk->operands[literal_idx].constantValue() & 0xffff; in optimize_encoding_sopk()
2896 reg.reg_b += definition->bytes() * instr->operands[1].constantValue(); in register_allocation()
/third_party/typescript/src/compiler/
DohApi.ts656 const constantValue = resolver.getConstantValue(node); constant
657 if (constantValue !== undefined) {
658 const substitute = typeof constantValue === "string" ?
659 factory.createStringLiteral(constantValue) :
660 factory.createNumericLiteral(constantValue);
Demitter.ts2558 const constantValue = getConstantValue(expression); constant
2560 return typeof constantValue === "number" && isFinite(constantValue)
2561 && Math.floor(constantValue) === constantValue;
/third_party/typescript/src/compiler/factory/
DemitNode.ts181 return node.emitNode?.constantValue;
189 emitNode.constantValue = value;
DnodeFactory.ts6947 constantValue, constant
6960 if (constantValue !== undefined) destEmitNode.constantValue = constantValue;
/third_party/typescript/src/services/
DsymbolDisplay.ts418 const constantValue = typeChecker.getConstantValue(declaration as EnumMember); constant
419 if (constantValue !== undefined) {
423 displayParts.push(displayPart(getTextOfConstantValue(constantValue),
424 …typeof constantValue === "number" ? SymbolDisplayPartKind.numericLiteral : SymbolDisplayPartKind.s…
/third_party/typescript/src/compiler/transformers/
Dts.ts2440 const constantValue = tryGetConstEnumValue(node); constant
2441 if (constantValue !== undefined) {
2443 setConstantValue(node, constantValue);
2445 …bstitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factor…
/third_party/vk-gl-cts/framework/opengl/
DgluShaderProgram.cpp136 const glw::GLuint* constantIndex, const glw::GLuint* constantValue) in specialize() argument
144 …l.specializeShader(m_shader, entryPoint, numSpecializationConstants, constantIndex, constantValue); in specialize()
DgluShaderProgram.hpp94 const glw::GLuint* constantIndex, const glw::GLuint* constantValue);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DGVNExpression.h591 ConstantExpression(Constant *constantValue) in ConstantExpression() argument
592 : Expression(ET_Constant), ConstantValue(constantValue) {} in ConstantExpression()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp2161 const TConstantUnion *constantValue = getConstantValue(); in fold() local
2162 if (constantValue == nullptr) in fold()
2166 return CreateFoldedNode(constantValue, this); in fold()

12