14 #ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
20 #include "llvm/Support/DataTypes.h"
30 class MCSubtargetInfo;
34 class raw_pwrite_stream;
42 const MCRegisterInfo &MRI,
46 const Triple &TT, StringRef CPU);
50 bool IsLittleEndian, uint8_t OSABI);
60 static inline bool isRunOfOnes(
unsigned Val,
unsigned &MB,
unsigned &ME) {
93 #define GET_REGINFO_ENUM
94 #include "PPCGenRegisterInfo.inc"
98 #define GET_INSTRINFO_ENUM
99 #include "PPCGenInstrInfo.inc"
101 #define GET_SUBTARGETINFO_ENUM
102 #include "PPCGenSubtargetInfo.inc"
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...
bool isShiftedMask_32(uint32_t Value)
isShiftedMask_32 - This function returns true if the argument contains a non-empty sequence of ones w...
MCObjectWriter * createPPCELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, bool IsLittleEndian, uint8_t OSABI)
Construct an PPC ELF object writer.
MCAsmBackend * createPPCAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU)
MCObjectWriter * createPPCMachObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct a PPC Mach-O object writer.
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...
MCCodeEmitter * createPPCMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)