13#ifndef LLVM_CODEGEN_TARGETOPCODES_H
14#define LLVM_CODEGEN_TARGETOPCODES_H
20namespace TargetOpcode {
22#define HANDLE_TARGET_OPCODE(OPC) OPC,
23#define HANDLE_TARGET_OPCODE_MARKER(IDENT, OPC) IDENT = OPC,
24#include "llvm/Support/TargetOpcodes.def"
31 return Opcode >= TargetOpcode::PRE_ISEL_GENERIC_OPCODE_START &&
32 Opcode <= TargetOpcode::PRE_ISEL_GENERIC_OPCODE_END;
37 return Opcode > TargetOpcode::PRE_ISEL_GENERIC_OPCODE_END;
43 return Opcode >= TargetOpcode::PRE_ISEL_GENERIC_OPTIMIZATION_HINT_START &&
44 Opcode <= TargetOpcode::PRE_ISEL_GENERIC_OPTIMIZATION_HINT_END;
This is an optimization pass for GlobalISel generic memory operations.
bool isPreISelGenericOpcode(unsigned Opcode)
Check whether the given Opcode is a generic opcode that is not supposed to appear after ISel.
bool isPreISelGenericOptimizationHint(unsigned Opcode)
bool isTargetSpecificOpcode(unsigned Opcode)
Check whether the given Opcode is a target-specific opcode.