#include "ABIInfoImpl.h"
#include "TargetInfo.h"
usingnamespaceclang;
usingnamespaceclang::CodeGen;
namespace {
class LanaiABIInfo : public DefaultABIInfo { … };
}
bool LanaiABIInfo::shouldUseInReg(QualType Ty, CCState &State) const { … }
ABIArgInfo LanaiABIInfo::getIndirectResult(QualType Ty, bool ByVal,
CCState &State) const { … }
ABIArgInfo LanaiABIInfo::classifyArgumentType(QualType Ty,
CCState &State) const { … }
namespace {
class LanaiTargetCodeGenInfo : public TargetCodeGenInfo { … };
}
std::unique_ptr<TargetCodeGenInfo>
CodeGen::createLanaiTargetCodeGenInfo(CodeGenModule &CGM) { … }