Home
last modified time | relevance | path

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

12

/external/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.cpp317 CreateConstant(insn).constantValue[0] = insn.word(3);
321 CreateConstant(insn).constantValue[0] = 0; // Represent Boolean false as zero.
325 CreateConstant(insn).constantValue[0] = ~0u; // Represent Boolean true as all bits set.
336 object.constantValue[i] = 0;
351 object.constantValue[offset++] = constituent.constantValue[j];
369 modes.WorkgroupSizeX = object.constantValue[0];
370 modes.WorkgroupSizeY = object.constantValue[1];
371 modes.WorkgroupSizeZ = object.constantValue[2];
835 object.constantValue.resize(objectTy.componentCount); in CreateConstant()
2300 …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()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DSyntheticAccessorFSM.java234 long constantValue = 0; in test() local
336 constantValue = ((WideLiteralInstruction)instructions.get(p)).getWideLiteral(); in test()
344 constantValue = ((WideLiteralInstruction)instructions.get(p)).getWideLiteral(); in test()
472 … accessorType = getIncrementType(mathOp, mathType, constantValue, putRegister, returnRegister); in test()
478 … accessorType = getIncrementType(mathOp, mathType, constantValue, putRegister, returnRegister); in test()
513 … private static int getIncrementType(int mathOp, int mathType, long constantValue, int putRegister, in getIncrementType() argument
522 if (constantValue == 1) { in getIncrementType()
524 } else if (constantValue == -1) { in getIncrementType()
532 float val = Float.intBitsToFloat((int)constantValue); in getIncrementType()
543 double val = Double.longBitsToDouble(constantValue); in getIncrementType()
/external/smali/dexlib2/src/main/ragel/
DSyntheticAccessorFSM.rl85 long constantValue = 0;
108 constantValue = ((WideLiteralInstruction)instructions.get(p)).getWideLiteral();
114 constantValue = ((WideLiteralInstruction)instructions.get(p)).getWideLiteral();
181 … accessorType = getIncrementType(mathOp, mathType, constantValue, putRegister, returnRegister);
185 … accessorType = getIncrementType(mathOp, mathType, constantValue, putRegister, returnRegister);
210 … private static int getIncrementType(int mathOp, int mathType, long constantValue, int putRegister,
219 if (constantValue == 1) {
221 } else if (constantValue == -1) {
229 float val = Float.intBitsToFloat((int)constantValue);
240 double val = Double.longBitsToDouble(constantValue);
/external/antlr/tool/src/main/java/org/antlr/analysis/
DSemanticContext.java113 protected int constantValue = INVALID_PRED_VALUE; field in SemanticContext.Predicate
115 public Predicate(int constantValue) { in Predicate() argument
117 this.constantValue=constantValue; in Predicate()
134 this.constantValue = p.constantValue; in Predicate()
149 if (this.constantValue != other.constantValue){ in equals()
153 if (this.constantValue != INVALID_PRED_VALUE){ in equals()
162 if (constantValue != INVALID_PRED_VALUE){ in hashCode()
163 return constantValue; in hashCode()
/external/doclava/src/com/google/doclava/
DFieldInfo.java37 boolean isSynthetic, TypeInfo type, String rawCommentText, Object constantValue, in FieldInfo() argument
40 …gePrivate, isPrivate, isFinal, isStatic, isSynthetic, chooseKind(isFinal, isStatic, constantValue), in FieldInfo()
45 mConstantValue = constantValue; in FieldInfo()
58 static String chooseKind(boolean isFinal, boolean isStatic, Object constantValue) in chooseKind() argument
60 return isConstant(isFinal, isStatic, constantValue) ? "constant" : "field"; in chooseKind()
108 static boolean isConstant(boolean isFinal, boolean isStatic, Object constantValue) in isConstant() argument
118 return isFinal && isStatic && (constantValue != null); in isConstant()
133 public Object constantValue() { in constantValue() method in FieldInfo
DAndroidAuxSource.java56 if (String.valueOf(field.constantValue()).equals(expected)) { in classAuxTags()
173 if (String.valueOf(field.constantValue()).equals(expected)) { in auxTags()
205 if (String.valueOf(field.constantValue()).equals(expected)) { in auxTags()
248 if (String.valueOf(field.constantValue()).equals(value)) { in auxTags()
317 candidates.put(String.valueOf(field.constantValue()), field); in auxTags()
322 candidates.put(String.valueOf(field.constantValue()), field); in auxTags()
DInfoBuilder.java165 if (f.constantValue() != null) { in printClassInfo()
166 System.out.println(": " + f.constantValue()); in printClassInfo()
187 if (f.constantValue() != null) { in printClassInfo()
188 System.out.println(": " + f.constantValue()); in printClassInfo()
688 Object constantValue = null; in buildFields() local
748 constantValue = parseExpression(tmp); in buildFields()
759 newType, commentAndPosition.getCommentText(), constantValue, in buildFields()
777 Object constantValue = null; in parseExpression() local
785 return constantValue; in parseExpression()
792 return constantValue; in parseExpression()
[all …]
/external/proguard/src/proguard/evaluation/
DProcessor.java579 stack.push(classConstantValueFactory.constantValue(clazz, constantIndex)); in visitConstantInstruction()
595 … stack.push(constantValueFactory.constantValue(clazz, constantIndex).referenceValue()); in visitConstantInstruction()
600 …ReferenceValue referenceValue = constantValueFactory.constantValue(clazz, constantIndex).reference… in visitConstantInstruction()
614 …castValue.isNull() == Value.NEVER ? constantValueFactory.constantValue(clazz, constantIndex).refe… in visitConstantInstruction()
615 …constantValueFactory.constantValue(clazz, constantIndex).referenceValue().generalize(valueFactory.… in visitConstantInstruction()
621 …ReferenceValue referenceValue = constantValueFactory.constantValue(clazz, constantIndex).reference… in visitConstantInstruction()
641 … stack.push(constantValueFactory.constantValue(clazz, constantIndex).referenceValue()); in visitConstantInstruction()
DConstantValueFactory.java54 public Value constantValue(Clazz clazz, in constantValue() method in ConstantValueFactory
/external/mesa3d/src/amd/compiler/
Daco_assembler.cpp50 unsigned offset = instr->operands[0].constantValue(); in emit_instruction()
183 if (!instr->operands[1].isConstant() || instr->operands[1].constantValue() >= 1024) { in emit_instruction()
186 encoding |= instr->operands[1].constantValue() >> 2; in emit_instruction()
192 …rands.size() >= 2 && instr->operands[1].isConstant() && instr->operands[1].constantValue() >= 1024) in emit_instruction()
193 out.push_back(instr->operands[1].constantValue() >> 2); in emit_instruction()
235 offset = op_off1.isConstant() ? op_off1.constantValue() : op_off1.physReg(); in emit_instruction()
239 offset = op_off1.constantValue(); in emit_instruction()
329 encoding |= (0x3 & instr->operands[0].constantValue()); in emit_instruction()
590 encoding = 0x3 & instr->operands[0].constantValue(); in emit_instruction()
701 out.push_back(op.constantValue()); in emit_instruction()
Daco_optimizer.cpp219 val = Operand(constant).constantValue(); in set_constant()
711 if (!literal32.isUndefined() && literal32.constantValue() != op.constantValue()) in check_vop3_operands()
713 if (!literal64.isUndefined() && literal64.constantValue() != op.constantValue()) in check_vop3_operands()
764 *offset = add_instr->operands[i].constantValue(); in parse_base_offset()
1195 const unsigned index = instr->operands[1].constantValue(); in label_instruction()
1286 if (instr->operands[!i].constantValue() == (fp16 ? 0x4000 : 0x40000000)) { /* 2.0 */ in label_instruction()
1288 … } else if (instr->operands[!i].constantValue() == (fp16 ? 0x4400 : 0x40800000)) { /* 4.0 */ in label_instruction()
1290 … } else if (instr->operands[!i].constantValue() == (fp16 ? 0x3800 : 0x3f000000)) { /* 0.5 */ in label_instruction()
1292 } else if (instr->operands[!i].constantValue() == (fp16 ? 0x3c00 : 0x3f800000) && in label_instruction()
2191 instr->operands[!i].constantValue() != op2_instr->operands[0].constantValue()) in combine_salu_n2()
[all …]
Daco_lower_to_hw_instr.cpp698 …if (!identity[i].isConstant() || identity[i].constantValue()) { /* bound_ctrl should take care of … in emit_reduction()
988 uint32_t imm = op.constantValue(); in copy_constant()
1017 uint8_t val = op.constantValue(); in copy_constant()
1031 if (op.constantValue() >= 0xfff0 || op.constantValue() <= 64) { in copy_constant()
1034 uint32_t val32 = (int32_t)(int16_t)op.constantValue(); in copy_constant()
1045 bld.vop2(aco_opcode::v_or_b32, dst, Operand(op.constantValue() << offset), def_op); in copy_constant()
1224 copy_constant(ctx, bld, def, Operand(lo.constantValue() | (hi.constantValue() << 16))); in do_pack_2x16()
1242 (!hi.isConstant() || !Operand(hi.constantValue()).isLiteral() || in do_pack_2x16()
1257 bld.vop2(aco_opcode::v_or_b32, def, Operand(lo.constantValue()), Operand(def.physReg(), v1)); in do_pack_2x16()
1266 …bld.vop2(aco_opcode::v_or_b32, def, Operand(hi.constantValue() << 16u), Operand(def.physReg(), v1)… in do_pack_2x16()
[all …]
Daco_opt_value_numbering.cpp53 hash = murmur_32_scramble(hash, op.constantValue()); in hash_murmur_32()
136 if (a->operands[i].constantValue() != b->operands[i].constantValue()) in operator ()()
Daco_print_ir.cpp158 fprintf(output, "0x%.2x", operand->constantValue()); in print_operand()
160 fprintf(output, "0x%.4x", operand->constantValue()); in print_operand()
162 fprintf(output, "0x%x", operand->constantValue()); in print_operand()
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormatOutputBuilder.kt931 node.constantValue()?.let { value -> in <lambda>()
1035 val constants = node.members.filter { it.constantValue() != null } in <lambda>()
1036 …val inheritedConstants = allInheritedMembers.filter { it.constantValue() != null }.groupBy { it.ow… in <lambda>()
1054 it.kind == propertyKind && it.constantValue() == null in <lambda>()
1059 it == NodeKind.Field && it.constantValue() != null in <lambda>()
1100 val constants = node.members(NodeKind.Property).filter { it.constantValue() != null } in <lambda>()
1150 fun DocumentationNode.constantValue(): String? = in DocumentationNode() method
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DLowerToAffineLoops.cpp138 DenseElementsAttr constantValue = op.value(); in matchAndRewrite() local
167 auto valueIt = constantValue.getValues<FloatAttr>().begin(); in matchAndRewrite()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DLowerToAffineLoops.cpp138 DenseElementsAttr constantValue = op.value(); in matchAndRewrite() local
166 auto valueIt = constantValue.getValues<FloatAttr>().begin(); in matchAndRewrite()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DLowerToAffineLoops.cpp138 DenseElementsAttr constantValue = op.value(); in matchAndRewrite() local
167 auto valueIt = constantValue.getValues<FloatAttr>().begin(); in matchAndRewrite()
/external/proguard/src/proguard/optimize/info/
DFieldOptimizationInfo.java168 … value = CONSTANT_VALUE_FACTORY.constantValue(clazz, constantValueAttribute.u2constantValueIndex); in visitConstantValueAttribute()
/external/doclava/res/assets/templates-sdk/
Dclass.cs179 <?cs if:subcount(field.constantValue) ?>
181 <?cs if:field.constantValue.isString ?>
182 <?cs var:field.constantValue.str ?>
184 <?cs var:field.constantValue.dec ?>
185 (<?cs var:field.constantValue.hex ?>)
/external/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()
/external/deqp/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()
/external/llvm-project/llvm/include/llvm/Transforms/Scalar/
DGVNExpression.h584 ConstantExpression(Constant *constantValue) in ConstantExpression() argument
585 : Expression(ET_Constant), ConstantValue(constantValue) {} in ConstantExpression()

12