Skip to content

Commit e62dc1f

Browse files
committed
Add explanatory comment
1 parent 91fe1de commit e62dc1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/TableGen/GlobalISelEmitter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,10 @@ Expected<action_iterator> GlobalISelEmitter::importExplicitUseRenderer(
13541354
return failedImport("Dst pattern child is an unsupported kind");
13551355
}
13561356

1357+
/// Generates code that builds the resulting instruction(s) from the destination
1358+
/// DAG. Note that to do this we do not and should not need the source DAG.
1359+
/// We do need to know whether a generated instruction defines a result of the
1360+
/// source DAG; this information is available via RuleMatcher::hasOperand.
13571361
Expected<BuildMIAction &> GlobalISelEmitter::createAndImportInstructionRenderer(
13581362
RuleMatcher &M, InstructionMatcher &InsnMatcher,
13591363
const TreePatternNode &Dst) {

0 commit comments

Comments
 (0)