powered by
These functions help us deal with different targets.
targetLibraryInfo(triple) setTargetTriple(m, str) getTargetTriple(m) lookupTarget(triple, arch = character()) getDefaultTargetTriple()
the triple string describing the target information
module object on which to get/set the triple
a string identifying the architecture of the target, e.g. "nvptx64"
"nvptx64"
LLVM Documentation
# NOT RUN { tri = getDefaultTargetTriple() print(tri) m = Module() setTargetTriple(m, tri) # }
Run the code above in your browser using DataLab