/frameworks/base/startop/view_compiler/ |
D | dex_testcase_generator.cc | 85 Instruction::InvokeVirtual(string_length.id, result, Value::Parameter(0))); in GenerateSimpleTestCases() 96 returnIfZero.AddInstruction(Instruction::OpWithArgs( in GenerateSimpleTestCases() 97 Instruction::Op::kBranchEqz, /*dest=*/{}, Value::Parameter(0), else_target)); in GenerateSimpleTestCases() 101 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfZero)); in GenerateSimpleTestCases() 104 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, else_target)); in GenerateSimpleTestCases() 107 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfZero)); in GenerateSimpleTestCases() 117 returnIfNotZero.AddInstruction(Instruction::OpWithArgs( in GenerateSimpleTestCases() 118 Instruction::Op::kBranchNEqz, /*dest=*/{}, Value::Parameter(0), else_target)); in GenerateSimpleTestCases() 122 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfNotZero)); in GenerateSimpleTestCases() 125 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, else_target)); in GenerateSimpleTestCases() [all …]
|
D | dex_builder.cc | 31 using Op = Instruction::Op; 33 using Opcode = ::art::Instruction::Code; 48 case ::art::Instruction::INVOKE_VIRTUAL: in InvokeToInvokeRange() 49 return ::art::Instruction::INVOKE_VIRTUAL_RANGE; in InvokeToInvokeRange() 50 case ::art::Instruction::INVOKE_DIRECT: in InvokeToInvokeRange() 51 return ::art::Instruction::INVOKE_DIRECT_RANGE; in InvokeToInvokeRange() 52 case ::art::Instruction::INVOKE_STATIC: in InvokeToInvokeRange() 53 return ::art::Instruction::INVOKE_STATIC_RANGE; in InvokeToInvokeRange() 54 case ::art::Instruction::INVOKE_INTERFACE: in InvokeToInvokeRange() 55 return ::art::Instruction::INVOKE_INTERFACE_RANGE; in InvokeToInvokeRange() [all …]
|
D | dex_builder.h | 147 class Instruction { 172 static inline Instruction OpNoArgs(Op opcode) { in OpNoArgs() 173 return Instruction{opcode, /*method_id*/ 0, /*dest*/ {}}; in OpNoArgs() 177 static inline Instruction OpWithArgs(Op opcode, std::optional<const Value> dest, T... args) { in OpWithArgs() 178 return Instruction{opcode, /*method_id=*/0, /*result_is_object=*/false, dest, args...}; in OpWithArgs() 182 static inline Instruction Cast(Value val, Value type) { in Cast() 189 static inline Instruction InvokeVirtual(size_t method_id, std::optional<const Value> dest, in InvokeVirtual() 191 return Instruction{ in InvokeVirtual() 196 static inline Instruction InvokeVirtualObject(size_t method_id, std::optional<const Value> dest, in InvokeVirtualObject() 198 return Instruction{ in InvokeVirtualObject() [all …]
|
D | dex_layout_compiler.cc | 86 dex::Instruction::InvokeStaticObject(layout_inflater_from.id, /*dest=*/inflater_, context_)); in Start() 93 method_->AddInstruction(dex::Instruction::InvokeVirtualObject(get_resources.id, xml_, context_)); in Start() 102 method_->AddInstruction(dex::Instruction::InvokeVirtualObject(get_layout.id, xml_, xml_, resid_)); in Start() 110 method_->AddInstruction(dex::Instruction::InvokeStaticObject(as_attribute_set.id, attrs_, xml_)); in Start() 113 method_->AddInstruction(dex::Instruction::InvokeInterface(xml_next_.id, {}, xml_)); in Start() 133 method_->AddInstruction(dex::Instruction::InvokeInterface(xml_next_.id, {}, xml_)); in StartView() 142 method_->AddInstruction(dex::Instruction::InvokeVirtualObject( in StartView() 146 method_->AddInstruction(dex::Instruction::InvokeVirtualObject( in StartView() 152 dex::Instruction::OpWithArgs(dex::Instruction::Op::kBranchNEqz, /*dest=*/{}, view, label)); in StartView() 164 dex::Instruction::OpWithArgs(dex::Instruction::Op::kBindLabel, /*dest=*/{}, label)); in StartView() [all …]
|
/frameworks/rs/rsov/compiler/spirit/ |
D | module.h | 47 class Instruction; variable 78 void registerId(uint32_t id, Instruction *inst) { in registerId() 136 Instruction *lookupByName(const char *) const; 145 const char *lookupNameByInstruction(const Instruction *) const; 159 TypeVectorInst *getVectorType(Instruction *componentType, int width); 161 Instruction *pointeeType); 162 TypeRuntimeArrayInst *getRuntimeArrayType(Instruction *elementType); 166 TypeStructInst *getStructType(Instruction *fieldType[], int numField); 167 TypeStructInst *getStructType(const std::vector<Instruction *> &fieldType); 168 TypeStructInst *getStructType(Instruction *field0Type); [all …]
|
D | instructions.h | 46 class Instruction : public Entity { 48 Instruction(uint32_t opCode) : mCodeAndCount(opCode) {} in Instruction() function 49 Instruction(uint32_t opCode, uint32_t fixedWordCount) in Instruction() function 51 virtual ~Instruction() {} in ~Instruction() 66 Instruction *addExtraOperand(uint32_t word) { in addExtraOperand() 141 const std::vector<Instruction *> &getAnnotations() const { in getAnnotations() 151 std::vector<Instruction *> mDecorations;
|
D | module.cpp | 63 CreateInstructionVisitor([&table](Instruction *inst) { in resolveIds() 74 CreateInstructionVisitor([&table, &err](Instruction *inst) { in resolveIds() 302 TypeVectorInst *Module::getVectorType(Instruction *componentType, int width) { in getVectorType() 307 Instruction *pointeeType) { in getPointerType() 311 TypeRuntimeArrayInst *Module::getRuntimeArrayType(Instruction *elementType) { in getRuntimeArrayType() 315 TypeStructInst *Module::getStructType(Instruction *fieldType[], int numField) { in getStructType() 319 TypeStructInst *Module::getStructType(Instruction *fieldType) { in getStructType() 323 TypeFunctionInst *Module::getFunctionType(Instruction *retType, in getFunctionType() 324 Instruction *const argType[], in getFunctionType() 330 Module::getFunctionType(Instruction *retType, in getFunctionType() [all …]
|
D | instructions.cpp | 26 IdRef::IdRef(Instruction *inst) : mId(inst->getId()), mInstruction(inst) {} in IdRef() 28 void Instruction::accept(IVisitor *v) { v->visit(this); } in accept() 30 DecorateInst *Instruction::decorate(Decoration decor) { in decorate() 42 MemberDecorateInst *Instruction::memberDecorate(int member, Decoration decor) { in memberDecorate()
|
D | core_defs.h | 25 class Instruction; variable 41 IdRef(Instruction *inst); 44 mutable Instruction *mInstruction; 51 IdResultType(Instruction *inst) : IdRef(inst) {} in IdResultType()
|
D | transformer.h | 51 void insert(Instruction *); 62 virtual Instruction *transform(INST_CLASS *inst) { \ 63 return static_cast<Instruction *>(inst); \ 69 if (Instruction *transformed = transform(inst)) { \
|
D | visitor.h | 34 class Instruction; variable 52 virtual void visit(Instruction *) = 0; 73 virtual void visit(Instruction *inst); 86 void visit(INST_CLASS *inst) override { mAction((Instruction *)inst); }
|
D | transformer_test.cpp | 33 Instruction *transform(IMulInst *mul) override { in transform() 42 Instruction *transform(IMulInst *) override { return nullptr; } in transform() 47 Instruction *transform(IMulInst *mul) override { in transform()
|
/frameworks/rs/rsov/compiler/ |
D | Builtin.cpp | 34 Instruction *translateClampVector(const char *name, in translateClampVector() 59 std::unique_ptr<Instruction> min( in translateClampVector() 64 std::unique_ptr<Instruction> max( in translateClampVector() 72 Instruction *translateExtInst(const uint32_t extOpCode, in translateExtInst() 81 typedef std::function<Instruction *(const char *, const FunctionCallInst *, 114 Builder *b, Module *) -> Instruction * { in BuiltinLookupTable() 121 Transformer *, Builder *b, Module *) -> Instruction * { in BuiltinLookupTable() 287 Instruction *transform(CapabilityInst *inst) override { in transform() 297 Instruction *transform(ExtInstImportInst *inst) override { in transform() 304 Instruction *transform(InBoundsPtrAccessChainInst *inst) override { in transform() [all …]
|
D | GlobalMergePass.cpp | 101 &Idx](Instruction *InsertBefore) { in runOnModule() 144 std::function<Instruction *(Instruction *)> funcCreateAndInsert) { in ReplaceAllUsesWithNewInstructions() 147 if (Instruction *Inst = dyn_cast<Instruction>(U)) { in ReplaceAllUsesWithNewInstructions() 156 auto InstMaker([CE, V, &funcCreateAndInsert](Instruction *UserOfU) { in ReplaceAllUsesWithNewInstructions() 157 Instruction *Inst = CE->getAsInstruction(); in ReplaceAllUsesWithNewInstructions()
|
D | Wrapper.cpp | 39 VariableInst *AddBuffer(Instruction *elementType, uint32_t binding, Builder &b, in AddBuffer() 100 Instruction *XValue = nullptr; in AddWrapper() 101 Instruction *YValue = nullptr; in AddWrapper() 102 Instruction *ZValue = nullptr; in AddWrapper() 103 Instruction *Index = nullptr; in AddWrapper() 172 Instruction *elementType = param->mResultType.mInstruction; in AddWrapper() 181 Instruction *input = b.MakeLoad(elementType, Ptr); in AddWrapper() 234 Instruction *inst = m->lookupByName("__GPUBlock"); in DecorateGlobalBuffer() 319 Instruction *inst = m->lookupByName(A.VarName.c_str()); in DecorateGlobalBuffer()
|
D | Wrapper.h | 30 class Instruction; variable 37 VariableInst *AddBuffer(Instruction *elementType, uint32_t binding, Builder &b,
|
D | GlobalAllocSPIRITPass.cpp | 40 std::vector<Instruction *> metadata{UInt32Ty, UInt32Ty, UInt32Ty, UInt32Ty}; in AddGAMetadata() 141 Instruction *transform(FunctionCallInst *call) { in transform() 149 Instruction *inst = nullptr; in transform()
|
/frameworks/compile/slang/BitWriter_3_2/ |
D | BitcodeWriter.cpp | 66 case Instruction::Trunc : return bitc::CAST_TRUNC; in GetEncodedCastOpcode() 67 case Instruction::ZExt : return bitc::CAST_ZEXT; in GetEncodedCastOpcode() 68 case Instruction::SExt : return bitc::CAST_SEXT; in GetEncodedCastOpcode() 69 case Instruction::FPToUI : return bitc::CAST_FPTOUI; in GetEncodedCastOpcode() 70 case Instruction::FPToSI : return bitc::CAST_FPTOSI; in GetEncodedCastOpcode() 71 case Instruction::UIToFP : return bitc::CAST_UITOFP; in GetEncodedCastOpcode() 72 case Instruction::SIToFP : return bitc::CAST_SITOFP; in GetEncodedCastOpcode() 73 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC; in GetEncodedCastOpcode() 74 case Instruction::FPExt : return bitc::CAST_FPEXT; in GetEncodedCastOpcode() 75 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT; in GetEncodedCastOpcode() [all …]
|
D | ValueEnumerator.h | 27 class Instruction; variable 81 typedef llvm::DenseMap<const llvm::Instruction*, unsigned> InstructionMapType; 129 unsigned getInstructionID(const llvm::Instruction *I) const; 130 void setInstructionID(const llvm::Instruction *I);
|
/frameworks/compile/slang/BitWriter_2_9_func/ |
D | BitcodeWriter.cpp | 66 case Instruction::Trunc : return bitc::CAST_TRUNC; in GetEncodedCastOpcode() 67 case Instruction::ZExt : return bitc::CAST_ZEXT; in GetEncodedCastOpcode() 68 case Instruction::SExt : return bitc::CAST_SEXT; in GetEncodedCastOpcode() 69 case Instruction::FPToUI : return bitc::CAST_FPTOUI; in GetEncodedCastOpcode() 70 case Instruction::FPToSI : return bitc::CAST_FPTOSI; in GetEncodedCastOpcode() 71 case Instruction::UIToFP : return bitc::CAST_UITOFP; in GetEncodedCastOpcode() 72 case Instruction::SIToFP : return bitc::CAST_SITOFP; in GetEncodedCastOpcode() 73 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC; in GetEncodedCastOpcode() 74 case Instruction::FPExt : return bitc::CAST_FPEXT; in GetEncodedCastOpcode() 75 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT; in GetEncodedCastOpcode() [all …]
|
D | ValueEnumerator.h | 26 class Instruction; variable 78 typedef llvm::DenseMap<const llvm::Instruction*, unsigned> InstructionMapType; 126 unsigned getInstructionID(const llvm::Instruction *I) const; 127 void setInstructionID(const llvm::Instruction *I);
|
/frameworks/compile/slang/BitWriter_2_9/ |
D | BitcodeWriter.cpp | 81 case Instruction::Trunc : return bitc::CAST_TRUNC; in GetEncodedCastOpcode() 82 case Instruction::ZExt : return bitc::CAST_ZEXT; in GetEncodedCastOpcode() 83 case Instruction::SExt : return bitc::CAST_SEXT; in GetEncodedCastOpcode() 84 case Instruction::FPToUI : return bitc::CAST_FPTOUI; in GetEncodedCastOpcode() 85 case Instruction::FPToSI : return bitc::CAST_FPTOSI; in GetEncodedCastOpcode() 86 case Instruction::UIToFP : return bitc::CAST_UITOFP; in GetEncodedCastOpcode() 87 case Instruction::SIToFP : return bitc::CAST_SITOFP; in GetEncodedCastOpcode() 88 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC; in GetEncodedCastOpcode() 89 case Instruction::FPExt : return bitc::CAST_FPEXT; in GetEncodedCastOpcode() 90 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT; in GetEncodedCastOpcode() [all …]
|
D | ValueEnumerator.h | 26 class Instruction; variable 78 typedef llvm::DenseMap<const llvm::Instruction*, unsigned> InstructionMapType; 126 unsigned getInstructionID(const llvm::Instruction *I) const; 127 void setInstructionID(const llvm::Instruction *I);
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
D | BitcodeReader.cpp | 199 SmallVector<Instruction *, 64> InstructionList; 502 case bitc::CAST_TRUNC : return Instruction::Trunc; in GetDecodedCastOpcode() 503 case bitc::CAST_ZEXT : return Instruction::ZExt; in GetDecodedCastOpcode() 504 case bitc::CAST_SEXT : return Instruction::SExt; in GetDecodedCastOpcode() 505 case bitc::CAST_FPTOUI : return Instruction::FPToUI; in GetDecodedCastOpcode() 506 case bitc::CAST_FPTOSI : return Instruction::FPToSI; in GetDecodedCastOpcode() 507 case bitc::CAST_UITOFP : return Instruction::UIToFP; in GetDecodedCastOpcode() 508 case bitc::CAST_SITOFP : return Instruction::SIToFP; in GetDecodedCastOpcode() 509 case bitc::CAST_FPTRUNC : return Instruction::FPTrunc; in GetDecodedCastOpcode() 510 case bitc::CAST_FPEXT : return Instruction::FPExt; in GetDecodedCastOpcode() [all …]
|
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
D | BitcodeReader.cpp | 180 SmallPtrSet<Instruction*, 32> DeadInsts; in UpgradeExceptionHandling() 261 for (SmallPtrSet<Instruction*, 32>::iterator in UpgradeExceptionHandling() 263 Instruction *Inst = *I; in UpgradeExceptionHandling() 289 Instruction *Inst = &*I++; in UpgradeExceptionHandling() 441 SmallVector<Instruction *, 64> InstructionList; 739 case bitc::CAST_TRUNC : return Instruction::Trunc; in GetDecodedCastOpcode() 740 case bitc::CAST_ZEXT : return Instruction::ZExt; in GetDecodedCastOpcode() 741 case bitc::CAST_SEXT : return Instruction::SExt; in GetDecodedCastOpcode() 742 case bitc::CAST_FPTOUI : return Instruction::FPToUI; in GetDecodedCastOpcode() 743 case bitc::CAST_FPTOSI : return Instruction::FPToSI; in GetDecodedCastOpcode() [all …]
|