LLVM 24.0.0git
HexagonSubtarget.cpp File Reference
#include "HexagonSubtarget.h"
#include "HexagonInstrInfo.h"
#include "HexagonRegisterInfo.h"
#include "HexagonTargetMachine.h"
#include "MCTargetDesc/HexagonMCTargetDesc.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/CodeGen/LibcallLoweringInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineScheduler.h"
#include "llvm/CodeGen/ScheduleDAG.h"
#include "llvm/CodeGen/ScheduleDAGInstrs.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/IntrinsicsHexagon.h"
#include "llvm/Option/LibraryOptions.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetMachine.h"
#include <algorithm>
#include <cassert>
#include <optional>
#include "HexagonGenSubtargetInfo.inc"
#include "HexagonOptions.inc"
#include "HexagonDepInstrIntrinsics.inc"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "hexagon-subtarget"
#define GET_SUBTARGETINFO_CTOR
#define GET_SUBTARGETINFO_TARGET_DESC
#define OPTIONS_STRUCT_DEFS
#define GET_SCALAR_INTRINSICS
#define GET_HVX_INTRINSICS

Functions

static std::optional< BankAddr > getBankAddr (const MachineInstr &MI, const HexagonInstrInfo &HII)
static bool haveComparableSyms (const BankAddr &A0, const BankAddr &A1, const DataLayout &DL)
static SUnit * getZeroLatency (SUnit *N, SmallVector< SDep, 4 > &Deps)
 If the SUnit has a zero latency edge, return the other SUnit.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hexagon-subtarget"

Definition at line 39 of file HexagonSubtarget.cpp.

◆ GET_HVX_INTRINSICS

#define GET_HVX_INTRINSICS

◆ GET_SCALAR_INTRINSICS

#define GET_SCALAR_INTRINSICS

◆ GET_SUBTARGETINFO_CTOR

#define GET_SUBTARGETINFO_CTOR

Definition at line 41 of file HexagonSubtarget.cpp.

◆ GET_SUBTARGETINFO_TARGET_DESC

#define GET_SUBTARGETINFO_TARGET_DESC

Definition at line 42 of file HexagonSubtarget.cpp.

◆ OPTIONS_STRUCT_DEFS

#define OPTIONS_STRUCT_DEFS

Definition at line 45 of file HexagonSubtarget.cpp.

Function Documentation

◆ getBankAddr()

◆ getZeroLatency()

SUnit * getZeroLatency ( SUnit * N,
SmallVector< SDep, 4 > & Deps )
static

If the SUnit has a zero latency edge, return the other SUnit.

Definition at line 936 of file HexagonSubtarget.cpp.

References I, and N.

◆ haveComparableSyms()

bool haveComparableSyms ( const BankAddr & A0,
const BankAddr & A1,
const DataLayout & DL )
static

Definition at line 620 of file HexagonSubtarget.cpp.

References DL.

Referenced by llvm::HexagonSubtarget::mayHaveBankConflict().