1ef16c8eaSPatrick Holland //===--------------------- CustomBehaviour.cpp ------------------*- C++ -*-===// 2ef16c8eaSPatrick Holland // 3ef16c8eaSPatrick Holland // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4ef16c8eaSPatrick Holland // See https://llvm.org/LICENSE.txt for license information. 5ef16c8eaSPatrick Holland // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6ef16c8eaSPatrick Holland // 7ef16c8eaSPatrick Holland //===----------------------------------------------------------------------===// 8ef16c8eaSPatrick Holland /// \file 9ef16c8eaSPatrick Holland /// 10ef16c8eaSPatrick Holland /// This file implements methods from the CustomBehaviour interface. 11ef16c8eaSPatrick Holland /// 12ef16c8eaSPatrick Holland //===----------------------------------------------------------------------===// 13ef16c8eaSPatrick Holland 14ef16c8eaSPatrick Holland #include "llvm/MCA/CustomBehaviour.h" 15ef16c8eaSPatrick Holland 16ef16c8eaSPatrick Holland namespace llvm { 17ef16c8eaSPatrick Holland namespace mca { 18ef16c8eaSPatrick Holland 19*3a3cb929SKazu Hirata CustomBehaviour::~CustomBehaviour() = default; 20c2955534SMin-Yih Hsu checkCustomHazard(ArrayRef<InstRef> IssuedInst,const InstRef & IR)21ef16c8eaSPatrick Hollandunsigned CustomBehaviour::checkCustomHazard(ArrayRef<InstRef> IssuedInst, 22ef16c8eaSPatrick Holland const InstRef &IR) { 23ef16c8eaSPatrick Holland // 0 signifies that there are no hazards that need to be waited on 24ef16c8eaSPatrick Holland return 0; 25ef16c8eaSPatrick Holland } 26ef16c8eaSPatrick Holland 27fe01014fSPatrick Holland std::vector<std::unique_ptr<View>> getStartViews(llvm::MCInstPrinter & IP,llvm::ArrayRef<llvm::MCInst> Insts)28fe01014fSPatrick HollandCustomBehaviour::getStartViews(llvm::MCInstPrinter &IP, 29fe01014fSPatrick Holland llvm::ArrayRef<llvm::MCInst> Insts) { 30fe01014fSPatrick Holland return std::vector<std::unique_ptr<View>>(); 31fe01014fSPatrick Holland } 32fe01014fSPatrick Holland 33fe01014fSPatrick Holland std::vector<std::unique_ptr<View>> getPostInstrInfoViews(llvm::MCInstPrinter & IP,llvm::ArrayRef<llvm::MCInst> Insts)34fe01014fSPatrick HollandCustomBehaviour::getPostInstrInfoViews(llvm::MCInstPrinter &IP, 35fe01014fSPatrick Holland llvm::ArrayRef<llvm::MCInst> Insts) { 36fe01014fSPatrick Holland return std::vector<std::unique_ptr<View>>(); 37fe01014fSPatrick Holland } 38fe01014fSPatrick Holland 39fe01014fSPatrick Holland std::vector<std::unique_ptr<View>> getEndViews(llvm::MCInstPrinter & IP,llvm::ArrayRef<llvm::MCInst> Insts)40fe01014fSPatrick HollandCustomBehaviour::getEndViews(llvm::MCInstPrinter &IP, 41fe01014fSPatrick Holland llvm::ArrayRef<llvm::MCInst> Insts) { 42fe01014fSPatrick Holland return std::vector<std::unique_ptr<View>>(); 43fe01014fSPatrick Holland } 44fe01014fSPatrick Holland 45ef16c8eaSPatrick Holland } // namespace mca 46ef16c8eaSPatrick Holland } // namespace llvm 47