Triple

Triple 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 have 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();

get32bitArchVariant

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

llvm::Triple get32BitArchVariant() const;