struct TargetLowering::AsmOperandInfo

Declaration

struct TargetLowering::AsmOperandInfo : public ConstraintInfo { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/TargetLowering.h:3882

Inherits from: InlineAsm::ConstraintInfo

Member Variables

public std::string ConstraintCode
This contains the actual string for the code, like "m". TargetLowering picks the 'best' code from ConstraintInfo::Codes that most closely matches the operand.
public TargetLowering::ConstraintType ConstraintType = TargetLowering::C_Unknown
Information about the constraint code, e.g. Register, RegisterClass, Memory, Other, Unknown.
public llvm::Value* CallOperandVal = nullptr
If this is the result output operand or a clobber, this is null, otherwise it is the incoming operand to the CallInst. This gets modified as the asm is processed.
public llvm::MVT ConstraintVT = MVT::Other
The ValueType for the operand value.

Inherited from InlineAsm::ConstraintInfo:

public Type = isInput
public isEarlyClobber = false
public MatchingInput = -1
public isCommutative = false
public isIndirect = false
public Codes
public isMultipleAlternative = false
public multipleAlternatives
public currentAlternativeIndex = 0

Method Overview

Inherited from InlineAsm::ConstraintInfo:

Methods

AsmOperandInfo(InlineAsm::ConstraintInfo Info)

Description

Copy constructor for copying from a ConstraintInfo.

Declared at: llvm/include/llvm/CodeGen/TargetLowering.h:3901

Parameters

InlineAsm::ConstraintInfo Info

unsigned int getMatchedOperand() const

Description

If this is an input matching constraint, this method returns the output operand it matches.

Declared at: llvm/include/llvm/CodeGen/TargetLowering.h:3910

bool isMatchingInputConstraint() const

Description

Return true of this is an input operand that is a matching constraint like "4".

Declared at: llvm/include/llvm/CodeGen/TargetLowering.h:3906