1 //===--- M68k.h - Declare M68k target feature support -------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file declares M68k TargetInfo objects.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_M68K_H
14 #define LLVM_CLANG_LIB_BASIC_TARGETS_M68K_H
16 #include "OSTargets.h"
17 #include "clang/Basic/TargetInfo.h"
18 #include "clang/Basic/TargetOptions.h"
19 #include "llvm/ADT/Triple.h"
20 #include "llvm/Support/Compiler.h"
25 class LLVM_LIBRARY_VISIBILITY M68kTargetInfo : public TargetInfo {
26 static const char *const GCCRegNames[];
39 M68kTargetInfo(const llvm::Triple &Triple, const TargetOptions &);
41 void getTargetDefines(const LangOptions &Opts,
42 MacroBuilder &Builder) const override;
43 ArrayRef<Builtin::Info> getTargetBuiltins() const override;
44 bool hasFeature(StringRef Feature) const override;
45 ArrayRef<const char *> getGCCRegNames() const override;
46 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override;
47 std::string convertConstraint(const char *&Constraint) const override;
48 bool validateAsmConstraint(const char *&Name,
49 TargetInfo::ConstraintInfo &info) const override;
50 llvm::Optional<std::string> handleAsmEscapedChar(char EscChar) const override;
51 const char *getClobbers() const override;
52 BuiltinVaListKind getBuiltinVaListKind() const override;
53 bool setCPU(const std::string &Name) override;
56 } // namespace targets