Home
last modified time | relevance | path

Searched refs:ifStmt (Results 1 - 9 of 9) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dmir_lower.cpp122 LabelIdx MIRLower::CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt) in CreateCondGotoStmt() argument
125 brStmt->SetOpnd(ifStmt.Opnd(), 0); in CreateCondGotoStmt()
126 brStmt->SetSrcPos(ifStmt.GetSrcPos()); in CreateCondGotoStmt()
133 GetFuncProfData()->CopyStmtFreq(brStmt->GetStmtID(), ifStmt.GetStmtID()); in CreateCondGotoStmt()
135 bool thenEmpty = (ifStmt.GetThenPart() == nullptr) || (ifStmt.GetThenPart()->GetFirst() == nullptr); in CreateCondGotoStmt()
137 blk.AppendStatementsFromBlock(*ifStmt.GetElsePart()); in CreateCondGotoStmt()
139 blk.AppendStatementsFromBlock(*ifStmt.GetThenPart()); in CreateCondGotoStmt()
144 void MIRLower::CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrFalseStmt() argument
146 LabelIdx labelIdx = CreateCondGotoStmt(OP_brfalse, blk, ifStmt); in CreateBrFalseStmt()
159 CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt) CreateBrTrueStmt() argument
174 CreateBrFalseAndGotoStmt(BlockNode &blk, const IfStmtNode &ifStmt) CreateBrFalseAndGotoStmt() argument
210 LowerIfStmt(IfStmtNode &ifStmt, bool recursive) LowerIfStmt() argument
[all...]
H A Dmir_builder.cpp425 auto *ifStmt = NewNode<IfStmtNode>(); in CreateStmtIf() local
426 ifStmt->SetOpnd(cond, 0); in CreateStmtIf()
428 ifStmt->SetThenPart(thenBlock); in CreateStmtIf()
429 return ifStmt; in CreateStmtIf()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_lower.h42 inline bool IfStmtNoFallThrough(const IfStmtNode &ifStmt) in IfStmtNoFallThrough() argument
44 return OpCodeNoFallThrough(ifStmt.GetThenPart()->GetLast()->GetOpCode()); in IfStmtNoFallThrough()
70 virtual BlockNode *LowerIfStmt(IfStmtNode &ifStmt, bool recursive);
156 LabelIdx CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt);
157 void CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt);
158 void CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt);
159 void CreateBrFalseAndGotoStmt(BlockNode &blk, const IfStmtNode &ifStmt);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dswitch_lowerer.cpp193 IfStmtNode *ifStmt = nullptr; in BuildCodeForSwitchItems() local
214 ifStmt = static_cast<IfStmtNode *>(mirModule.GetMIRBuilder()->CreateStmtIf(cmpNode)); in BuildCodeForSwitchItems()
215 ifStmt->GetThenPart()->AddStatement(rangeGoto); in BuildCodeForSwitchItems()
216 localBlk->AppendStatementsFromBlock(*mirLowerer.LowerIfStmt(*ifStmt, false)); in BuildCodeForSwitchItems()
238 ifStmt = static_cast<IfStmtNode *>(mirModule.GetMIRBuilder()->CreateStmtIf(cmpNode)); in BuildCodeForSwitchItems()
239 ifStmt->GetThenPart()->AddStatement(rangeGoto); in BuildCodeForSwitchItems()
240 localBlk->AppendStatementsFromBlock(*mirLowerer.LowerIfStmt(*ifStmt, false)); in BuildCodeForSwitchItems()
325 ifStmt = static_cast<IfStmtNode *>(mirModule.GetMIRBuilder()->CreateStmtIf(cmpNode)); in BuildCodeForSwitchItems()
330 ifStmt->SetThenPart(BuildCodeForSwitchItems(start, mid - 1, lowBlockNodeChecked, leftHighBNdChecked)); in BuildCodeForSwitchItems()
331 ifStmt in BuildCodeForSwitchItems()
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DaliveAnalyzer.cpp339 void AliveAnalyzer::AnalyzeIf(const ir::IfStatement *ifStmt) in AnalyzeIf() argument
341 AnalyzeNode(ifStmt->Test()); in AnalyzeIf()
342 AnalyzeStat(ifStmt->Consequent()); in AnalyzeIf()
343 if (ifStmt->Alternate() != nullptr) { in AnalyzeIf()
346 AnalyzeStat(ifStmt->Alternate()); in AnalyzeIf()
H A DaliveAnalyzer.h73 void AnalyzeIf(const ir::IfStatement *ifStmt);
H A DassignAnalyzer.cpp791 void AssignAnalyzer::AnalyzeIf(const ir::IfStatement *ifStmt) in AnalyzeIf() argument
793 AnalyzeCond(ifStmt->Test()); in AnalyzeIf()
800 AnalyzeStat(ifStmt->Consequent()); in AnalyzeIf()
802 if (ifStmt->Alternate() != nullptr) { in AnalyzeIf()
808 AnalyzeStat(ifStmt->Alternate()); in AnalyzeIf()
H A DassignAnalyzer.h117 void AnalyzeIf(const ir::IfStatement *ifStmt);
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DenumLowering.cpp821 auto *const ifStmt = CreateIf(this, enumDecl, namesArrayIdent, forLoopIIdent, inputNameIdent);
826 checker_->AllocNode<ir::ForUpdateStatement>(forLoopInitVarDecl, forLoopTest, forLoopUpdate, ifStmt);

Completed in 10 milliseconds