Skip to content

Commit a4c7c66

Browse files
authored
[GlobalISel] Document minimum legality requirements for G_IMPLICIT_DEF. (#117609)
The reason for this change is to clarify an existing technical restriction of LLVM: there needs to be a way to implicitly define a type if there is any way to legally define that type by another means.
1 parent ca88a0e commit a4c7c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/GlobalISel/Legalizer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ G_BUILD_VECTOR_TRUNC, G_CONCAT_VECTORS, G_UNMERGE_VALUES, G_PTRTOINT, and
338338
G_INTTOPTR have already been noted above. In addition to those, the following
339339
operations have requirements:
340340

341-
* At least one G_IMPLICIT_DEF must be legal. This is usually trivial as it
342-
requires no code to be selected.
341+
* For every type that can be produced by any instruction, G_IMPLICIT_DEF must be
342+
legal.
343343
* G_PHI must be legal for all types in the producer and consumer typesets. This
344344
is usually trivial as it requires no code to be selected.
345345
* At least one G_FRAME_INDEX must be legal

0 commit comments

Comments
 (0)