TargetFuns: Functions related to different targets

Description Usage Arguments Author(s) References Examples

Description

These functions help us deal with different targets.

Usage

1
2
3
4
5

Arguments

triple,str

the triple string describing the target information

m

module object on which to get/set the triple

arch

a string identifying the architecture of the target, e.g. "nvptx64"

Author(s)

Duncan Temple Lang

References

LLVM Documentation

Examples

1
2
3
4
5
 tri = getDefaultTargetTriple()
 print(tri)

 m = Module()
 setTargetTriple(m, tri)

doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.