14#ifndef LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISABASEINFO_H
15#define LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISABASEINFO_H
25template <
class InstType>
29 const unsigned NumOps =
MI.getNumOperands();
30 bool IsFinished =
false;
31 for (
unsigned I = StartIndex;
I <
NumOps && !IsFinished; ++
I) {
32 if (!
MI.getOperand(
I).isImm())
34 assert((
MI.getOperand(
I).getImm() >> 32) == 0 &&
35 "Imm operand should be i32 word");
37 MI.getOperand(
I).getImm();
38 for (
unsigned ShiftAmount = 0; ShiftAmount < 32; ShiftAmount += 8) {
39 char C = (
Imm >> ShiftAmount) & 0xff;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
const size_t AbstractManglingParser< Derived, Alloc >::NumOps
This is an optimization pass for GlobalISel generic memory operations.
std::string getPISAStringOperand(const InstType &MI, unsigned StartIndex)