Triple¶
Triple is a helper class, it is used as support for users that 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 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
Triplewith a 32-bit architecture, if it is not found return an unknown architecture.llvm::Triple get32BitArchVariant() const;