Implementing the driver integration within clang – Beyond Instruction Selection-3

bool M88kTargetInfo::setCPU(const std::string &Name) {StringRef N = Name;CPU = llvm::StringSwitch(N).Case(“generic”, CK_88000).Case(“mc88000”, CK_88000).Case(“mc88100”, CK_88100).Case(“mc88110”, CK_88110).Default(CK_Unknown);return CPU != CK_Unknown;} static constexpr llvm::StringLiteral ValidCPUNames[] = {{“generic”}, {“mc88000”}, {“mc88100”}, {“mc88110”}};void M88kTargetInfo::fillValidCPUList(SmallVectorImpl &Values) const {Values.append(std::begin(ValidCPUNames),

Read More