TargetFuns: Functions related to different targets

targetLibraryInfoR Documentation

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"

Author(s)

Duncan Temple Lang

References

LLVM Documentation

Examples

 tri = getDefaultTargetTriple()
 print(tri)

 m = Module()
 setTargetTriple(m, tri)

duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.