LLVM: include/llvm/MC/MCInstBuilder.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_MC_MCINSTBUILDER_H

15#define LLVM_MC_MCINSTBUILDER_H

16

18

19namespace llvm {

20

23

24public:

25

27 Inst.setOpcode(Opcode);

28 }

29

30

35

36

41

42

47

48

53

54

59

60

65

66

71

72

77

81};

82

83}

84

85#endif

Base class for the full range of assembler expressions which are needed for parsing.

MCInstBuilder & setLoc(SMLoc SM)

Set the location.

Definition MCInstBuilder.h:31

MCInstBuilder & addInst(const MCInst *Val)

Add a new MCInst operand.

Definition MCInstBuilder.h:67

MCInstBuilder & addReg(MCRegister Reg)

Add a new register operand.

Definition MCInstBuilder.h:37

MCInstBuilder & addSFPImm(uint32_t Val)

Add a new single floating point immediate operand.

Definition MCInstBuilder.h:49

MCInstBuilder & addOperand(const MCOperand &Op)

Add an operand.

Definition MCInstBuilder.h:73

MCInstBuilder(unsigned Opcode)

Create a new MCInstBuilder for an MCInst with a specific opcode.

Definition MCInstBuilder.h:26

MCInstBuilder & addDFPImm(uint64_t Val)

Add a new floating point immediate operand.

Definition MCInstBuilder.h:55

MCInstBuilder & addImm(int64_t Val)

Add a new integer immediate operand.

Definition MCInstBuilder.h:43

MCInstBuilder & addExpr(const MCExpr *Val)

Add a new MCExpr operand.

Definition MCInstBuilder.h:61

Instances of this class represent a single low-level machine instruction.

Instances of this class represent operands of the MCInst class.

static MCOperand createExpr(const MCExpr *Val)

static MCOperand createSFPImm(uint32_t Val)

static MCOperand createReg(MCRegister Reg)

static MCOperand createImm(int64_t Val)

static MCOperand createDFPImm(uint64_t Val)

static MCOperand createInst(const MCInst *Val)

Wrapper class representing physical registers. Should be passed by value.

Represents a location in source code.

This is an optimization pass for GlobalISel generic memory operations.

DWARFExpression::Operation Op