Rllvm (version 0.7-0)

targetLibraryInfo: Functions related to different targets

Description

These functions help us deal with different targets.

Usage

targetLibraryInfo(triple)
setTargetTriple(m, str)
getTargetTriple(m)
lookupTarget(triple, arch = character())
getDefaultTargetTriple()

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"

References

LLVM Documentation

Examples

Run this code
# NOT RUN {
 tri = getDefaultTargetTriple()
 print(tri)

 m = Module()
 setTargetTriple(m, tri)
# }

Run the code above in your browser using DataLab