Mapping High Level Constructs to LLVM IR
latest

Contents:

  • A Quick Primer
  • Basic Constructs
    • Global Variables
    • Local Variables
    • Constants
    • Structures
    • Casts
    • Function Definitions and Declarations
    • Unions
  • Control-Flow Constructs
  • Object-Oriented Constructs
  • Exception Handling
  • Advanced/Functional Constructs
  • Interoperating with a Runtime Library
  • Interfacing to Operating Systems
  • Epilogue
  • How to Implement a String Type in LLVM
Mapping High Level Constructs to LLVM IR
  • Docs »
  • Basic Constructs
  • Edit on GitHub

Basic Constructs¶

In this chapter, we’ll look at the most basic and simple constructs that are part of nearly all imperative/OOP languages out there.

Contents:

  • Global Variables
  • Local Variables
  • Constants
    • Constant Expressions
  • Structures
    • Nested Structures
    • Incomplete Structure Types
    • Accessing a Structure Member
  • Casts
    • Bitwise Casts
    • Zero-Extending Casts (Unsigned Upcasts)
    • Sign-Extending Casts (Signed Upcasts)
    • Truncating Casts (Signed and Unsigned Downcasts)
    • Floating-Point Extending Casts (Float Upcasts)
    • Floating-Point Truncating Casts (Float Downcasts)
    • Pointer-to-Integer Casts
    • Integer-to-Pointer Casts
    • Address-Space Casts (Pointer Casts)
  • Function Definitions and Declarations
    • Simple Public Functions
    • Simple Private Functions
    • Function Prototypes
    • Functions with a Variable Number of Parameters
    • Function Overloading
    • Struct by Value as Parameter or Return Value
    • Exception-Aware Functions
    • Function Pointers
  • Unions
    • Tagged Unions
Next Previous

© Copyright 2014-2023 Michael Rodler and Mikael Egevig Revision 33f17b7c.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.