25#define DEBUG_TYPE "xtensa-isel"
37 return "Xtensa DAG->DAG Pattern Instruction Selection";
46 EVT ValTy =
Addr.getValueType();
50 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), ValTy);
56 if (
TM.isPositionIndependent()) {
58 "PIC relocations are not supported ",
60 CurDAG->getContext()->diagnose(Diag);
69 if (CurDAG->isBaseWithConstantOffset(
Addr)) {
78 dyn_cast<FrameIndexSDNode>(
Addr.getOperand(0)))
79 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), ValTy);
108#include "XtensaGenDAGISel.inc"
112char XtensaDAGToDAGISel::ID = 0;
116 return new XtensaDAGToDAGISel(
TM, OptLevel);
119void XtensaDAGToDAGISel::Select(
SDNode *
Node) {
123 if (
Node->isMachineOpcode()) {
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
amdgpu AMDGPU Register Bank Select
const char LLVMTargetMachineRef TM
uint64_t getZExtValue() const
int64_t getSExtValue() const
Diagnostic information for unsupported feature in backend.
FunctionPass class - This class is used to implement most global optimizations.
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
SelectionDAGISel - This is the common base class used for SelectionDAG-based pattern-matching instruc...
StringRef - Represent a constant reference to a string, i.e.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
@ TargetGlobalAddress
TargetGlobalAddress - Like GlobalAddress, but the DAG does no folding or anything else with this node...
This is an optimization pass for GlobalISel generic memory operations.
FunctionPass * createXtensaISelDag(XtensaTargetMachine &TM, CodeGenOptLevel OptLevel)
CodeGenOptLevel
Code generation optimization level.
bool isValidAddrOffset(int Scale, int64_t OffsetVal)