Adding the new architecture to the Triple class – The Target Description

An instance of the Triple class represents the target platform LLVM is producing code for. To support a new architecture, the first task is to extend the Triple class. In the llvm/include/llvm/TargetParser/Triple.h file, add a member to the ArchType enumeration along with a new predicate:class Triple {public:enum ArchType {// Many more membersm88k, // M88000 (big endian): m88k};/// Tests whether the …