MCPcopy Create free account
hub / github.com/llir/llvm / ParseFile

Function ParseFile

asm/asm.go:23–29  ·  view source on GitHub ↗

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

(path string)

Source from the content-addressed store, hash-verified

21
22// ParseFile parses the given LLVM IR assembly file into an LLVM IR module.
23func ParseFile(path string) (*ir.Module, error) {
24 buf, err := ioutil.ReadFile(path)
25 if err != nil {
26 return nil, errors.WithStack(err)
27 }
28 return ParseBytes(path, buf)
29}
30
31// Parse parses the given LLVM IR assembly file into an LLVM IR module, reading
32// from r. An optional path to the source file may be specified for error

Callers 9

ExampleFunction · 0.92
Example_evaluatorFunction · 0.92
Example_callgraphFunction · 0.92
TestModuleFunction · 0.92
TestModuleFunction · 0.92
TestModuleFunction · 0.92
TestModuleFunction · 0.92
mainFunction · 0.92
TestParseFileFunction · 0.85

Calls 1

ParseBytesFunction · 0.85

Tested by 7

Example_evaluatorFunction · 0.74
Example_callgraphFunction · 0.74
TestModuleFunction · 0.74
TestModuleFunction · 0.74
TestModuleFunction · 0.74
TestModuleFunction · 0.74
TestParseFileFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…