NobleBlocks

Research indexBook chapter

Intermediate Representation

McCool, Du Toit

1 Dec 2009

NobleIDark:/48914/w1/20260525/CE925170DOI10.1201/9781568816692-14

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

This chapter details the intermediate representation (IR) and related concepts. The IR encapsulates both the statements and the control-flow contained by a program. The chapter provides an overview of the reference-counting mechanism used by Sh and explains the way basic blocks are stored. Basic blocks are represented in Sh by the ShBasicBlock class. Most Sh operations are arithmetic or logic in nature. Sh programs can include more than just basic blocks: they can contain arbitrary data-dependent control flow. Many types in Sh are actually reference-counted. This means that for each object declared of such a type, a count is kept of how many pointer variables refer to it.

Citations

Topics

More

Suggest a correction or report