LLVM API Documentation

llvm::TargetLowering::AsmOperandInfo Struct Reference

#include <TargetLowering.h>

Inheritance diagram for llvm::TargetLowering::AsmOperandInfo:
[legend]
Collaboration diagram for llvm::TargetLowering::AsmOperandInfo:
[legend]

List of all members.

Public Member Functions

bool isMatchingInputConstraint () const
unsigned getMatchedOperand () const
 AsmOperandInfo (const InlineAsm::ConstraintInfo &info)

Public Attributes

std::string ConstraintCode
TargetLowering::ConstraintType ConstraintType
Value * CallOperandVal
MVT ConstraintVT
 ConstraintVT - The ValueType for the operand value.


Detailed Description

AsmOperandInfo - This contains information for each constraint that we are lowering.

Definition at line 1255 of file TargetLowering.h.


Constructor & Destructor Documentation

llvm::TargetLowering::AsmOperandInfo::AsmOperandInfo ( const InlineAsm::ConstraintInfo &  info  )  [inline]

Definition at line 1281 of file TargetLowering.h.


Member Function Documentation

bool TargetLowering::AsmOperandInfo::isMatchingInputConstraint (  )  const

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

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

Definition at line 2146 of file TargetLowering.cpp.

References ConstraintCode.

unsigned TargetLowering::AsmOperandInfo::getMatchedOperand (  )  const

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

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

Definition at line 2153 of file TargetLowering.cpp.

References ConstraintCode.


Member Data Documentation

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.

Definition at line 1259 of file TargetLowering.h.

Referenced by ChooseConstraint(), llvm::TargetLowering::ComputeConstraintToUse(), getMatchedOperand(), llvm::SelectionDAGLowering::GetRegistersForValue(), and isMatchingInputConstraint().

ConstraintType - Information about the constraint code, e.g. Register, RegisterClass, Memory, Other, Unknown.

Definition at line 1263 of file TargetLowering.h.

Referenced by ChooseConstraint(), llvm::TargetLowering::ComputeConstraintToUse(), and IsOperandAMemoryOperand().

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

Definition at line 1268 of file TargetLowering.h.

Referenced by llvm::TargetLowering::ComputeConstraintToUse(), and IsOperandAMemoryOperand().

ConstraintVT - The ValueType for the operand value.

Definition at line 1271 of file TargetLowering.h.

Referenced by llvm::TargetLowering::ComputeConstraintToUse(), and llvm::SelectionDAGLowering::GetRegistersForValue().


The documentation for this struct was generated from the following files: