Implementing the toolchain support for M88k within clang – Beyond Instruction Selection-2

StringRef m88k::getM88kTargetCPU(const ArgList &Args) {Arg *A = Args.getLastArg(options::OPT_m88000, options::OPT_m88100, options::OPT_m88110, options::OPT_mcpu_EQ);if (!A)return StringRef();switch (A->getOption().getID()) {case options::OPT_m88000:return “mc88000”;case options::OPT_m88100:return “mc88100”;case options::OPT_m88110:return “mc88110”;case options::OPT_mcpu_EQ:return normalizeCPU(A->getValue());default:llvm_unreachable(“Impossible option ID”);}} StringRef m88k::getM88kTuneCPU(const ArgList &Args) {if

Read More