<commit_before>//===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
// 
// This file declares the PowerPC-specific subclass of TargetMachine.
//
//===----------------------------------------------------------------------===//

#ifndef POWERPC_TARGETMACHINE_H
#define POWERPC_TARGETMACHINE_H

#include "PowerPCFrameInfo.h"
#include "PowerPCJITInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/PassManager.h"
#include <set>

namespace llvm {

class GlobalValue;
class IntrinsicLowering;

class PowerPCTargetMachine : public TargetMachine {
  PowerPCFrameInfo FrameInfo;
  PowerPCJITInfo JITInfo;

protected:
  PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
                       const TargetData &TD, const PowerPCFrameInfo &TFI,
                       const PowerPCJITInfo &TJI);
public:
  virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }
  virtual TargetJITInfo *getJITInfo() {
    return &JITInfo;
  }

  static unsigned getJITMatchQuality();

  virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);

  // Two shared sets between the instruction selector and the printer allow for
  // correct linkage on Darwin
  std::set<GlobalValue*> CalledFunctions;
  std::set<GlobalValue*> AddressTaken;
};

} // end namespace llvm

#endif<commit_msg>Do not provide the non-specialized PowerPCJITInfo object, it is pretty useless. Instead, let derived classes provide specialized ones.<commit_after>//===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
// 
// This file declares the PowerPC-specific subclass of TargetMachine.
//
//===----------------------------------------------------------------------===//

#ifndef POWERPC_TARGETMACHINE_H
#define POWERPC_TARGETMACHINE_H

#include "PowerPCFrameInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/PassManager.h"
#include <set>

namespace llvm {

class GlobalValue;
class IntrinsicLowering;

class PowerPCTargetMachine : public TargetMachine {
  PowerPCFrameInfo FrameInfo;

protected:
  PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
                       const TargetData &TD, const PowerPCFrameInfo &TFI);
public:
  virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }

  virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);

  // Two shared sets between the instruction selector and the printer allow for
  // correct linkage on Darwin
  std::set<GlobalValue*> CalledFunctions;
  std::set<GlobalValue*> AddressTaken;
};

} // end namespace llvm

#endif
{'fraction_non_alphanumeric': 0.1822125813449024, 'fraction_numerical': 0.0, 'mean_word_length': 2.622895622895623, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3857665', 'n_tokens_mistral': 868, 'n_tokens_neox': 848, 'n_words': 265}