-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crucible-llvm-syntax: Additional documentation
- Loading branch information
1 parent
adcb3f6
commit 22bd7b7
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
crucible-llvm-syntax/src/Lang/Crucible/LLVM/Syntax/TypeAlias.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
{- | ||
Module : Lang.Crucible.LLVM.Syntax.TypeAlias | ||
Copyright : (c) Galois, Inc 2023 | ||
Maintainer : Langston Barrett <[email protected]> | ||
License : BSD3 | ||
This module provides facilities for parsing C-like types and translating them | ||
to appropriate Crucible-LLVM types, given a target triple. For example, the | ||
syntax @Long@ is parsed as the Crucible-LLVM 64-bit bitvector type for the | ||
x86_64 Linux target ('x86_64LinuxTypes'), but the 32-bit bitvector type for | ||
32-bit ARM Linux targets ('aarch32LinuxTypes'). This can be useful if you want | ||
to write Crucible CFGs that can be simulated in the context of LLVM modules | ||
for several different architectures, for example if you want to override system | ||
calls. | ||
-} | ||
|
||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE FlexibleContexts #-} | ||
{-# LANGUAGE LambdaCase #-} | ||
|