ir-desc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Mono Intermediate Representation Documentation
  2. Operation: OP_ADDCC_IMM
  3. Add immediate that will set the carry flag.
  4. dreg:
  5. Destination register
  6. inst_imm
  7. Immediate value to add.
  8. sreg1:
  9. Source register to add.
  10. Operation: OP_CALL_HANDLER.
  11. cil_code:
  12. Points to the CIL where the LEAVE or LEAVE_S
  13. instruction was found.
  14. inst_target_bb:
  15. The target basic block for this invocation.
  16. This instruction must call the target basic block.
  17. Operation: OP_CISINST
  18. Implements the CEE_MONO_CISINST opcode that is decoded from
  19. the CIL stream.
  20. This opcode takes as input an object reference and a class,
  21. and leaves on the assigned register:
  22. 0. if the object is an instance of the class,
  23. 1. if the object is not instance of the class,
  24. 2. if the object is a proxy whose type cannot be determined.
  25. Operation: OP_CCASTCLASS
  26. Implements the CEE_MONO_CCASTCLASS opcode that is decoded from
  27. the CIL stream.
  28. This opcode takes as input an object reference and a class,
  29. and leaves on the assigned register:
  30. 0. if the object is an instance of the class,
  31. 1. if the object is a proxy whose type cannot be determined
  32. throws an InvalidCastException exception otherwise.
  33. Operation: OP_LOCALLOC
  34. inst_left:
  35. The value
  36. ins->inst_left = *sp;
  37. ins->cil_code = ip;
  38. This is the equivalent of alloca() in a C implementation: it
  39. allocates a bunch of bytes on the stack dynamically. Local
  40. variables are allocated statically in the stack instead.
  41. It is implemented by moving the stack pointer according to the
  42. platform ABI: you may need to keep a specific frame register
  43. to address local variables when LOCALLOC is used (the PPC code
  44. does this, for example: ifyou're doing the s390 port I suggest
  45. starting from that)
  46. Operation: OP_SUBCC_IMM
  47. Substract immediate that will set the borrow flag.
  48. dreg:
  49. Destination register
  50. inst_imm
  51. Immediate value to add.
  52. sreg1:
  53. Source register to add.