LLVM Language Reference Manual
  1. Abstract
  2. Introduction
  3. Identifiers
  4. Type System
    1. Primitive Types
      1. Type Classifications
    2. Derived Types
      1. Array Type
      2. Function Type
      3. Pointer Type
      4. Structure Type
  5. High Level Structure
    1. Module Structure
    2. Global Variables
    3. Function Structure
  6. Instruction Reference
    1. Terminator Instructions
      1. 'ret' Instruction
      2. 'br' Instruction
      3. 'switch' Instruction
      4. 'invoke' Instruction
      5. 'unwind' Instruction
    2. Binary Operations
      1. 'add' Instruction
      2. 'sub' Instruction
      3. 'mul' Instruction
      4. 'div' Instruction
      5. 'rem' Instruction
      6. 'setcc' Instructions
    3. Bitwise Binary Operations
      1. 'and' Instruction
      2. 'or' Instruction
      3. 'xor' Instruction
      4. 'shl' Instruction
      5. 'shr' Instruction
    4. Memory Access Operations
      1. 'malloc' Instruction
      2. 'free' Instruction
      3. 'alloca' Instruction
      4. 'load' Instruction
      5. 'store' Instruction
      6. 'getelementptr' Instruction
    5. Other Operations
      1. 'phi' Instruction
      2. 'cast .. to' Instruction
      3. 'call' Instruction
      4. 'vanext' Instruction
      5. 'vaarg' Instruction
  7. Intrinsic Functions
    1. Variable Argument Handling Intrinsics
      1. 'llvm.va_start' Intrinsic
      2. 'llvm.va_end' Intrinsic
      3. 'llvm.va_copy' Intrinsic

    Written by Chris Lattner and Vikram Adve

Abstract

Introduction


Well Formedness

Identifiers
Type System
   Primitive Types


Type Classifications

   Derived Types


Array Type


Function Type


Structure Type


Pointer Type

High Level Structure
   Module Structure
   Global Variables
   Functions
Instruction Reference
   Terminator Instructions


'ret' Instruction


'br' Instruction


'switch' Instruction


'invoke' Instruction


'unwind' Instruction

   Binary Operations


'add' Instruction


'sub' Instruction


'mul' Instruction


'div' Instruction


'rem' Instruction


'setcc' Instructions

   Bitwise Binary Operations


'and' Instruction


'or' Instruction


'xor' Instruction


'shl' Instruction


'shr' Instruction

   Memory Access Operations


'malloc' Instruction


'free' Instruction


'alloca' Instruction


'load' Instruction


'store' Instruction


'getelementptr' Instruction

   Other Operations


'phi' Instruction


'cast .. to' Instruction


'call' Instruction


'vanext' Instruction


'vaarg' Instruction

Intrinsic Functions
   Variable Argument Handling Intrinsics


'llvm.va_start' Intrinsic


'llvm.va_end' Intrinsic


'llvm.va_copy' Intrinsic


Chris Lattner
Last modified: Tue Oct 21 10:43:36 CDT 2003