asm

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2021 License: 0BSD, Unlicense Imports: 20 Imported by: 16

Documentation

Overview

Package asm implements a parser for LLVM IR assembly files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(path string, r io.Reader) (*ir.Module, error)

Parse parses the given LLVM IR assembly file into an LLVM IR module, reading from r. An optional path to the source file may be specified for error reporting.

func ParseBytes

func ParseBytes(path string, b []byte) (*ir.Module, error)

ParseBytes parses the given LLVM IR assembly file into an LLVM IR module, reading from b. An optional path to the source file may be specified for error reporting.

func ParseFile

func ParseFile(path string) (*ir.Module, error)

ParseFile parses the given LLVM IR assembly file into an LLVM IR module.

func ParseString

func ParseString(path, content string) (*ir.Module, error)

ParseString parses the given LLVM IR assembly file into an LLVM IR module, reading from content. An optional path to the source file may be specified for error reporting.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL