#include "SIMDIntrinsicsCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Regex.h"
#include "llvm/TargetParser/Triple.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::portability {
namespace {
AST_MATCHER(FunctionDecl, isVectorFunction) { … }
}
static StringRef trySuggestPpc(StringRef Name) { … }
static StringRef trySuggestX86(StringRef Name) { … }
SIMDIntrinsicsCheck::SIMDIntrinsicsCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void SIMDIntrinsicsCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void SIMDIntrinsicsCheck::registerMatchers(MatchFinder *Finder) { … }
void SIMDIntrinsicsCheck::check(const MatchFinder::MatchResult &Result) { … }
}