asm

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: 0BSD, Unlicense Imports: 20 Imported by: 19

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