llvm::LegalityQuery

Bundle the information needed to decide whether an operation is legal.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/LegalizerInfo.h>

struct LegalityQuery;

Description

For efficiency, it doesn't make a copy of Types so care must be taken not to free it before using the query.

Types

NameDescription
MemDesc Memory-operand constraints attached to a legality query.

Member Functions

NameDescription
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.

Data Members

NameDescription
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.