This patch only provides basic LoongArchTTIImpl, and more hooks will be added to provide TTI machinery for LoongArch soon. Reviewed By: SixWeining, xen0n Differential Revision: https://reviews.llvm.org/D147524
23 lines
935 B
C++
23 lines
935 B
C++
//===-- LoongArchTargetTransformInfo.cpp - LoongArch specific TTI ---------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
/// \file
|
|
/// This file implements a TargetTransformInfo analysis pass specific to the
|
|
/// LoongArch target machine. It uses the target's detailed information to
|
|
/// provide more precise answers to certain TTI queries, while letting the
|
|
/// target independent and default TTI implementations handle the rest.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "LoongArchTargetTransformInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
#define DEBUG_TYPE "loongarchtti"
|
|
|
|
// TODO: Implement more hooks to provide TTI machinery for LoongArch.
|