Searched refs:instruction (Results 1 - 25 of 1078) sorted by relevance

1234567891011>>

/external/tensorflow/tensorflow/compiler/xla/service/
H A Dhlo_query.cc25 bool IsConstantR0F32(HloInstruction* instruction, float* out) { argument
26 if (instruction->opcode() == HloOpcode::kConstant &&
27 ShapeUtil::IsScalarF32(instruction->shape())) {
28 *out = instruction->literal().Get<float>({});
35 bool AllOperandsAreParametersOrConstants(const HloInstruction& instruction) { argument
36 for (const auto& operand : instruction.operands()) {
45 bool AllOperandsAreParameters(const HloInstruction& instruction) { argument
46 for (const auto& operand : instruction.operands()) {
54 bool AllOperandsAreConstants(const HloInstruction& instruction) { argument
55 for (const auto& operand : instruction
63 GetMatchingOperand( std::function<bool(const HloInstruction*)> matcher, HloInstruction* instruction) argument
74 MatchBinaryInstructionOperand( std::function<bool(const HloInstruction*)> matcher, HloInstruction* instruction, HloInstruction** matching_operand, HloInstruction** other_operand) argument
92 MatchBinaryInstructionOperandOpcode(HloOpcode opcode, HloInstruction* instruction, HloInstruction** matching_operand, HloInstruction** other_operand) argument
100 instruction, matching_operand, other_operand); member in namespace:xla::hlo_query
103 IsScalarConstant(const HloInstruction* instruction) argument
[all...]
H A Dzero_sized_hlo_elimination.cc33 for (HloInstruction* instruction : comp->MakeInstructionPostOrder()) {
34 if (instruction->HasSideEffect() ||
35 ShapeUtil::IsTuple(instruction->shape())) {
38 if (comp->IsRemovable(instruction) &&
39 ShapeUtil::HasZeroElements(instruction->shape())) {
41 instruction, HloInstruction::CreateConstant(
42 Literal::CreateFromShape(instruction->shape()))));
H A Dhlo_constant_folding.cc45 for (auto instruction : computation->MakeInstructionPostOrder()) {
47 if (instruction->user_count() == 0 &&
48 computation->root_instruction() != instruction) {
55 if (instruction->opcode() == HloOpcode::kParameter ||
56 instruction->opcode() == HloOpcode::kConstant ||
57 instruction->opcode() == HloOpcode::kTuple ||
58 instruction->opcode() == HloOpcode::kReduce) {
62 if (!hlo_query::AllOperandsAreConstants(*instruction)) {
69 if (instruction->opcode() == HloOpcode::kBroadcast) {
73 std::unique_ptr<Literal> result = evaluator->TryEvaluate(instruction);
[all...]
H A Dhlo_query.h26 // Returns whether the instruction provided is a constant rank-0 float32, and
29 bool IsConstantR0F32(HloInstruction* instruction, float* out);
31 // Returns whether all of an instruction's operands are of the types constants
33 bool AllOperandsAreParametersOrConstants(const HloInstruction& instruction);
35 // Returns whether all of an instruction's operands are parameters.
36 bool AllOperandsAreParameters(const HloInstruction& instruction);
38 // Returns whether all of an instruction's operands are constants.
39 bool AllOperandsAreConstants(const HloInstruction& instruction);
41 // Returns whether the instruction is a scalar constant.
42 bool IsScalarConstant(const HloInstruction* instruction);
[all...]
/external/valgrind/none/tests/mips64/
H A Dmacro_load_store.h3 #define TEST1(instruction, offset, mem) \
11 instruction" $t1, 0($t0)" "\n\t" \
18 instruction, offset, out); \
21 #define TEST2(instruction, offset) \
33 instruction" $t3, 0($t1)" "\n\t" \
44 instruction, offset, out, outHI); \
47 #define TEST3(instruction, offset, mem) \
55 instruction" $f0, 0($t0)" "\n\t" \
62 instruction, offset, out); \
65 #define TEST3w(instruction, offse
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
H A DInstructionRewriter.java36 import org.jf.dexlib2.iface.instruction.Instruction;
37 import org.jf.dexlib2.iface.instruction.ReferenceInstruction;
38 import org.jf.dexlib2.iface.instruction.formats.*;
53 @Nonnull @Override public Instruction rewrite(@Nonnull Instruction instruction) { argument
54 if (instruction instanceof ReferenceInstruction) {
55 switch (instruction.getOpcode().format) {
57 return new RewrittenInstruction20bc((Instruction20bc)instruction);
59 return new RewrittenInstruction21c((Instruction21c)instruction);
61 return new RewrittenInstruction22c((Instruction22c)instruction);
63 return new RewrittenInstruction31c((Instruction31c)instruction);
77 @Nonnull protected T instruction; field in class:InstructionRewriter.BaseRewrittenReferenceInstruction
79 BaseRewrittenReferenceInstruction(@onnull T instruction) argument
114 RewrittenInstruction20bc(@onnull Instruction20bc instruction) argument
125 RewrittenInstruction21c(@onnull Instruction21c instruction) argument
136 RewrittenInstruction22c(@onnull Instruction22c instruction) argument
151 RewrittenInstruction31c(@onnull Instruction31c instruction) argument
162 RewrittenInstruction35c(@onnull Instruction35c instruction) argument
193 RewrittenInstruction3rc(@onnull Instruction3rc instruction) argument
[all...]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
H A Dcpu_hlo_support_checker.cc27 for (const auto& instruction : computation->instructions()) {
29 ShapeUtil::ValidateShapeWithOptionalLayout(instruction->shape()));
31 instruction->shape(),
32 [&instruction](const Shape& subshape, const ShapeIndex&) {
35 "CPU backend does not support HLO instruction %s with shape "
37 instruction->ToString().c_str(),
38 ShapeUtil::HumanStringWithLayout(instruction->shape())
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
H A Dgpu_hlo_support_checker.cc27 for (const auto& instruction : computation->instructions()) {
29 ShapeUtil::ValidateShapeWithOptionalLayout(instruction->shape()));
31 instruction->shape(),
32 [&instruction](const Shape& subshape, const ShapeIndex&) {
35 "GPU backend does not support HLO instruction %s with shape "
37 instruction->ToString().c_str(),
38 ShapeUtil::HumanStringWithLayout(instruction->shape())
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/instruction/formats/
H A DInstruction10t.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.OffsetInstruction;
H A DInstruction10x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.Instruction;
H A DInstruction11x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.OneRegisterInstruction;
H A DInstruction12x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction;
H A DInstruction20t.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.OffsetInstruction;
H A DInstruction22x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction;
H A DInstruction23x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.ThreeRegisterInstruction;
H A DInstruction30t.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.OffsetInstruction;
H A DInstruction32x.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction;
H A DPackedSwitchPayload.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.SwitchPayload;
H A DSparseSwitchPayload.java32 package org.jf.dexlib2.iface.instruction.formats;
34 import org.jf.dexlib2.iface.instruction.SwitchPayload;
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
H A DInstructionWriter.java39 import org.jf.dexlib2.iface.instruction.DualReferenceInstruction;
40 import org.jf.dexlib2.iface.instruction.ReferenceInstruction;
41 import org.jf.dexlib2.iface.instruction.SwitchElement;
42 import org.jf.dexlib2.iface.instruction.formats.*;
106 public void write(@Nonnull Instruction10t instruction) { argument
108 writer.write(getOpcodeValue(instruction.getOpcode()));
109 writer.write(instruction.getCodeOffset());
115 public void write(@Nonnull Instruction10x instruction) { argument
117 writer.write(getOpcodeValue(instruction.getOpcode()));
124 public void write(@Nonnull Instruction11n instruction) { argument
133 write(@onnull Instruction11x instruction) argument
142 write(@onnull Instruction12x instruction) argument
151 write(@onnull Instruction20bc instruction) argument
161 write(@onnull Instruction20t instruction) argument
171 write(@onnull Instruction21c instruction) argument
181 write(@onnull Instruction21ih instruction) argument
191 write(@onnull Instruction21lh instruction) argument
201 write(@onnull Instruction21s instruction) argument
211 write(@onnull Instruction21t instruction) argument
221 write(@onnull Instruction22b instruction) argument
232 write(@onnull Instruction22c instruction) argument
242 write(@onnull Instruction22cs instruction) argument
252 write(@onnull Instruction22s instruction) argument
262 write(@onnull Instruction22t instruction) argument
272 write(@onnull Instruction22x instruction) argument
282 write(@onnull Instruction23x instruction) argument
293 write(@onnull Instruction30t instruction) argument
303 write(@onnull Instruction31c instruction) argument
313 write(@onnull Instruction31i instruction) argument
323 write(@onnull Instruction31t instruction) argument
333 write(@onnull Instruction32x instruction) argument
344 write(@onnull Instruction35c instruction) argument
356 write(@onnull Instruction35mi instruction) argument
368 write(@onnull Instruction35ms instruction) argument
380 write(@onnull Instruction3rc instruction) argument
391 write(@onnull Instruction3rmi instruction) argument
403 write(@onnull Instruction3rms instruction) argument
414 write(@onnull Instruction45cc instruction) argument
427 write(@onnull Instruction4rcc instruction) argument
439 write(@onnull Instruction51l instruction) argument
449 write(@onnull ArrayPayload instruction) argument
485 write(@onnull SparseSwitchPayload instruction) argument
509 write(@onnull PackedSwitchPayload instruction) argument
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
H A DImmutableInstruction.java32 package org.jf.dexlib2.immutable.instruction;
37 import org.jf.dexlib2.iface.instruction.Instruction;
38 import org.jf.dexlib2.iface.instruction.formats.*;
53 public static ImmutableInstruction of(Instruction instruction) { argument
54 if (instruction instanceof ImmutableInstruction) {
55 return (ImmutableInstruction)instruction;
58 switch (instruction.getOpcode().format) {
60 return ImmutableInstruction10t.of((Instruction10t)instruction);
62 if (instruction instanceof UnknownInstruction) {
63 return ImmutableUnknownInstruction.of((UnknownInstruction)instruction);
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
H A DMutableMethodImplementation.java41 import org.jf.dexlib2.builder.instruction.*;
46 import org.jf.dexlib2.iface.instruction.Instruction;
47 import org.jf.dexlib2.iface.instruction.SwitchElement;
48 import org.jf.dexlib2.iface.instruction.formats.*;
68 for (Instruction instruction: methodImplementation.getInstructions()) {
69 codeAddress += instruction.getCodeUnits();
84 for (final Instruction instruction: methodImplementation.getInstructions()) {
86 final Opcode opcode = instruction.getOpcode();
90 convertAndSetInstruction(location, codeAddressToIndex, instruction);
94 convertAndSetInstruction(location, codeAddressToIndex, instruction);
203 addInstruction(int index, BuilderInstruction instruction) argument
237 addInstruction(@onnull BuilderInstruction instruction) argument
548 setInstruction(@onnull MethodLocation location, @Nonnull BuilderInstruction instruction) argument
553 convertAndSetInstruction(@onnull MethodLocation location, int[] codeAddressToIndex, @Nonnull Instruction instruction) argument
677 newBuilderInstruction10t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction10t instruction) argument
685 newBuilderInstruction10x(@onnull Instruction10x instruction) argument
691 newBuilderInstruction11n(@onnull Instruction11n instruction) argument
699 newBuilderInstruction11x(@onnull Instruction11x instruction) argument
706 newBuilderInstruction12x(@onnull Instruction12x instruction) argument
714 newBuilderInstruction20bc(@onnull Instruction20bc instruction) argument
722 newBuilderInstruction20t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction20t instruction) argument
730 newBuilderInstruction21c(@onnull Instruction21c instruction) argument
738 newBuilderInstruction21ih(@onnull Instruction21ih instruction) argument
746 newBuilderInstruction21lh(@onnull Instruction21lh instruction) argument
754 newBuilderInstruction21s(@onnull Instruction21s instruction) argument
762 newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) argument
771 newBuilderInstruction22b(@onnull Instruction22b instruction) argument
780 newBuilderInstruction22c(@onnull Instruction22c instruction) argument
789 newBuilderInstruction22cs(@onnull Instruction22cs instruction) argument
798 newBuilderInstruction22s(@onnull Instruction22s instruction) argument
807 newBuilderInstruction22t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction22t instruction) argument
817 newBuilderInstruction22x(@onnull Instruction22x instruction) argument
825 newBuilderInstruction23x(@onnull Instruction23x instruction) argument
834 newBuilderInstruction30t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction30t instruction) argument
842 newBuilderInstruction31c(@onnull Instruction31c instruction) argument
850 newBuilderInstruction31i(@onnull Instruction31i instruction) argument
858 newBuilderInstruction31t(@onnull MethodLocation location , int[] codeAddressToIndex, @Nonnull Instruction31t instruction) argument
875 newBuilderInstruction32x(@onnull Instruction32x instruction) argument
883 newBuilderInstruction35c(@onnull Instruction35c instruction) argument
896 newBuilderInstruction35mi(@onnull Instruction35mi instruction) argument
909 newBuilderInstruction35ms(@onnull Instruction35ms instruction) argument
922 newBuilderInstruction3rc(@onnull Instruction3rc instruction) argument
931 newBuilderInstruction3rmi(@onnull Instruction3rmi instruction) argument
940 newBuilderInstruction3rms(@onnull Instruction3rms instruction) argument
949 newBuilderInstruction51l(@onnull Instruction51l instruction) argument
987 newBuilderPackedSwitchPayload(@onnull MethodLocation location, @Nonnull int[] codeAddressToIndex, @Nonnull PackedSwitchPayload instruction) argument
1012 newBuilderSparseSwitchPayload(@onnull MethodLocation location, @Nonnull int[] codeAddressToIndex, @Nonnull SparseSwitchPayload instruction) argument
1038 newBuilderArrayPayload(@onnull ArrayPayload instruction) argument
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/instruction/
H A DFieldOffsetInstruction.java32 package org.jf.dexlib2.iface.instruction;
H A DHatLiteralInstruction.java32 package org.jf.dexlib2.iface.instruction;
H A DInlineIndexInstruction.java32 package org.jf.dexlib2.iface.instruction;

Completed in 263 milliseconds

1234567891011>>