Bundle the information needed to decide whether an operation is legal.
Declared in <llvm/CodeGen/GlobalISel/LegalizerInfo.h>
struct LegalityQuery;
For efficiency, it doesn't make a copy of Types so care must be taken not to free it before using the query.
| Name | Description |
|---|---|
MemDesc | Memory-operand constraints attached to a legality query. |
| Name | Description |
|---|---|
LegalityQuery [constructor] | Construct a legality query for Opcode with the given type and memory info. |
print | Print this query to OS and return the stream. |
| Name | Description |
|---|---|
Immediates | Immediate operands associated with the operation, if any. |
MMODescrs | Operations which require memory can use this to place requirements on the memory type for each MMO. |
Opcode | Opcode whose legality is being queried. |
Types | Operand and result types for the operation. |