This revision was automatically updated to reflect the committed changes. Closed by commit rG994bb937f020: [PowerPC] Moving defineXLCompatMacros() definition (authored by quinnp, committed by Conanap).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104125/new/ https://reviews.llvm.org/D104125 Files: clang/lib/Basic/Targets/PPC.cpp clang/lib/Basic/Targets/PPC.h Index: clang/lib/Basic/Targets/PPC.h =================================================================== --- clang/lib/Basic/Targets/PPC.h +++ clang/lib/Basic/Targets/PPC.h @@ -350,24 +350,6 @@ bool isSPRegName(StringRef RegName) const override { return RegName.equals("r1") || RegName.equals("x1"); } - - void defineXLCompatMacros(MacroBuilder &Builder) const { - Builder.defineMacro("__popcntb", "__builtin_ppc_popcntb"); - Builder.defineMacro("__eieio", "__builtin_ppc_eieio"); - Builder.defineMacro("__iospace_eieio", "__builtin_ppc_iospace_eieio"); - Builder.defineMacro("__isync", "__builtin_ppc_isync"); - Builder.defineMacro("__lwsync", "__builtin_ppc_lwsync"); - Builder.defineMacro("__iospace_lwsync", "__builtin_ppc_iospace_lwsync"); - Builder.defineMacro("__sync", "__builtin_ppc_sync"); - Builder.defineMacro("__iospace_sync", "__builtin_ppc_iospace_sync"); - Builder.defineMacro("__dcbfl", "__builtin_ppc_dcbfl"); - Builder.defineMacro("__dcbflp", "__builtin_ppc_dcbflp"); - Builder.defineMacro("__dcbst", "__builtin_ppc_dcbst"); - Builder.defineMacro("__dcbt", "__builtin_ppc_dcbt"); - Builder.defineMacro("__dcbtst", "__builtin_ppc_dcbtst"); - Builder.defineMacro("__dcbz", "__builtin_ppc_dcbz"); - Builder.defineMacro("__icbt", "__builtin_ppc_icbt"); - } }; class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo { Index: clang/lib/Basic/Targets/PPC.cpp =================================================================== --- clang/lib/Basic/Targets/PPC.cpp +++ clang/lib/Basic/Targets/PPC.cpp @@ -81,6 +81,24 @@ return true; } +static void defineXLCompatMacros(MacroBuilder &Builder) { + Builder.defineMacro("__popcntb", "__builtin_ppc_popcntb"); + Builder.defineMacro("__eieio", "__builtin_ppc_eieio"); + Builder.defineMacro("__iospace_eieio", "__builtin_ppc_iospace_eieio"); + Builder.defineMacro("__isync", "__builtin_ppc_isync"); + Builder.defineMacro("__lwsync", "__builtin_ppc_lwsync"); + Builder.defineMacro("__iospace_lwsync", "__builtin_ppc_iospace_lwsync"); + Builder.defineMacro("__sync", "__builtin_ppc_sync"); + Builder.defineMacro("__iospace_sync", "__builtin_ppc_iospace_sync"); + Builder.defineMacro("__dcbfl", "__builtin_ppc_dcbfl"); + Builder.defineMacro("__dcbflp", "__builtin_ppc_dcbflp"); + Builder.defineMacro("__dcbst", "__builtin_ppc_dcbst"); + Builder.defineMacro("__dcbt", "__builtin_ppc_dcbt"); + Builder.defineMacro("__dcbtst", "__builtin_ppc_dcbtst"); + Builder.defineMacro("__dcbz", "__builtin_ppc_dcbz"); + Builder.defineMacro("__icbt", "__builtin_ppc_icbt"); +} + /// PPCTargetInfo::getTargetDefines - Return a set of the PowerPC-specific /// #defines that are not tied to a specific subtarget. void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
Index: clang/lib/Basic/Targets/PPC.h =================================================================== --- clang/lib/Basic/Targets/PPC.h +++ clang/lib/Basic/Targets/PPC.h @@ -350,24 +350,6 @@ bool isSPRegName(StringRef RegName) const override { return RegName.equals("r1") || RegName.equals("x1"); } - - void defineXLCompatMacros(MacroBuilder &Builder) const { - Builder.defineMacro("__popcntb", "__builtin_ppc_popcntb"); - Builder.defineMacro("__eieio", "__builtin_ppc_eieio"); - Builder.defineMacro("__iospace_eieio", "__builtin_ppc_iospace_eieio"); - Builder.defineMacro("__isync", "__builtin_ppc_isync"); - Builder.defineMacro("__lwsync", "__builtin_ppc_lwsync"); - Builder.defineMacro("__iospace_lwsync", "__builtin_ppc_iospace_lwsync"); - Builder.defineMacro("__sync", "__builtin_ppc_sync"); - Builder.defineMacro("__iospace_sync", "__builtin_ppc_iospace_sync"); - Builder.defineMacro("__dcbfl", "__builtin_ppc_dcbfl"); - Builder.defineMacro("__dcbflp", "__builtin_ppc_dcbflp"); - Builder.defineMacro("__dcbst", "__builtin_ppc_dcbst"); - Builder.defineMacro("__dcbt", "__builtin_ppc_dcbt"); - Builder.defineMacro("__dcbtst", "__builtin_ppc_dcbtst"); - Builder.defineMacro("__dcbz", "__builtin_ppc_dcbz"); - Builder.defineMacro("__icbt", "__builtin_ppc_icbt"); - } }; class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo { Index: clang/lib/Basic/Targets/PPC.cpp =================================================================== --- clang/lib/Basic/Targets/PPC.cpp +++ clang/lib/Basic/Targets/PPC.cpp @@ -81,6 +81,24 @@ return true; } +static void defineXLCompatMacros(MacroBuilder &Builder) { + Builder.defineMacro("__popcntb", "__builtin_ppc_popcntb"); + Builder.defineMacro("__eieio", "__builtin_ppc_eieio"); + Builder.defineMacro("__iospace_eieio", "__builtin_ppc_iospace_eieio"); + Builder.defineMacro("__isync", "__builtin_ppc_isync"); + Builder.defineMacro("__lwsync", "__builtin_ppc_lwsync"); + Builder.defineMacro("__iospace_lwsync", "__builtin_ppc_iospace_lwsync"); + Builder.defineMacro("__sync", "__builtin_ppc_sync"); + Builder.defineMacro("__iospace_sync", "__builtin_ppc_iospace_sync"); + Builder.defineMacro("__dcbfl", "__builtin_ppc_dcbfl"); + Builder.defineMacro("__dcbflp", "__builtin_ppc_dcbflp"); + Builder.defineMacro("__dcbst", "__builtin_ppc_dcbst"); + Builder.defineMacro("__dcbt", "__builtin_ppc_dcbt"); + Builder.defineMacro("__dcbtst", "__builtin_ppc_dcbtst"); + Builder.defineMacro("__dcbz", "__builtin_ppc_dcbz"); + Builder.defineMacro("__icbt", "__builtin_ppc_icbt"); +} + /// PPCTargetInfo::getTargetDefines - Return a set of the PowerPC-specific /// #defines that are not tied to a specific subtarget. void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits