Triple

Triple Class is a helper class, it is used as support for users who want to have arbitrary configurations’ names but also want to have special behavior for different configurations.

It is designed to hold the OSType, ArchType, etc. For more information about the Triple Class you can go here.

llvm::sys::getProcessTriple

Return an appropriate target Triple for generating code for the current process.

std::string sys::getProcessTriple();

llvm::Triple::Triple

Construct Triple from its string representation. It parses various information as enumerations for easier handling.

Triple::Triple(const Twine &Str);

llvm::Triple::get32bitArchVariant

Return a Triple with a 32-bit architecture, if it is not found return an unknown architecture.

Triple Triple::get32BitArchVariant() const;