1 //===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/TargetTransformInfo.h"
11 #include "llvm/Support/ErrorHandling.h"
17 /// @note This has to exist, because this is a pass, but it should never be
19 TargetTransformInfo::TargetTransformInfo() : ImmutablePass(ID) {
20 /// You are seeing this error because your pass required the TTI
21 /// using a call to "getAnalysis<TargetTransformInfo>()", and you did
22 /// not initialize a machine target which can provide the TTI.
23 /// You should use "getAnalysisIfAvailable<TargetTransformInfo>()" instead.
24 report_fatal_error("Bad TargetTransformInfo ctor used. "
25 "Tool did not specify a TargetTransformInfo to use?");
28 INITIALIZE_PASS(TargetTransformInfo, "targettransforminfo",
29 "Target Transform Info", false, true)
30 char TargetTransformInfo::ID = 0;