14 #ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
31 class MCTargetOptions;
35 class raw_pwrite_stream;
42 const MCRegisterInfo &
MRI,
46 const Triple &TT, StringRef CPU,
47 const MCTargetOptions &Options);
51 bool IsLittleEndian, uint8_t OSABI);
61 static inline bool isRunOfOnes(
unsigned Val,
unsigned &MB,
unsigned &ME) {
94 #define GET_REGINFO_ENUM
95 #include "PPCGenRegisterInfo.inc"
99 #define GET_INSTRINFO_ENUM
100 #include "PPCGenInstrInfo.inc"
102 #define GET_SUBTARGETINFO_ENUM
103 #include "PPCGenSubtargetInfo.inc"
105 #endif // LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
MCAsmBackend * createPPCAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const MCTargetOptions &Options)
Target & getThePPC32Target()
std::size_t countLeadingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the most significant bit to the least stopping at the first 1...
MCObjectWriter * createPPCELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, bool IsLittleEndian, uint8_t OSABI)
Construct an PPC ELF object writer.
Target & getThePPC64Target()
unsigned const MachineRegisterInfo * MRI
MCObjectWriter * createPPCMachObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct a PPC Mach-O object writer.
static const char * Target
Target & getThePPC64LETarget()
static bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME)
Returns true iff Val consists of one contiguous run of 1s with any number of 0s on either side...
constexpr bool isShiftedMask_32(uint32_t Value)
Return true if the argument contains a non-empty sequence of ones with the remainder zero (32 bit ver...
MCCodeEmitter * createPPCMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)