llvm/llvm/lib/CodeGen/CommandFlags.cpp

//===-- CommandFlags.cpp - Command Line Flags Interface ---------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file contains codegen-specific flags that are shared between different
// command line tools. The tools "llc" and "opt" both use this file to prevent
// flag duplication.
//
//===----------------------------------------------------------------------===//

#include "llvm/CodeGen/CommandFlags.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/SubtargetFeature.h"
#include "llvm/TargetParser/Triple.h"
#include <optional>

usingnamespacellvm;

#define CGOPT(TY, NAME)

#define CGLIST(TY, NAME)

// Temporary macro for incremental transition to std::optional.
#define CGOPT_EXP(TY, NAME)

CGOPT()
CGOPT()
CGLIST()
CGOPT_EXP()
CGOPT()
CGOPT_EXP()
CGOPT_EXP()
CGOPT()
CGOPT_EXP()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT_EXP()
CGOPT_EXP()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT_EXP()
CGOPT_EXP()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()
CGOPT()

codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {}

llvm::BasicBlockSection
codegen::getBBSectionsMode(llvm::TargetOptions &Options) {}

// Common utility function tightly tied to the options listed here. Initializes
// a TargetOptions object with CodeGen flags and returns it.
TargetOptions
codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {}

std::string codegen::getCPUStr() {}

std::string codegen::getFeaturesStr() {}

std::vector<std::string> codegen::getFeatureList() {}

void codegen::renderBoolStringAttr(AttrBuilder &B, StringRef Name, bool Val) {}

#define HANDLE_BOOL_ATTR(CL, AttrName)

/// Set function attributes of function \p F based on CPU, Features, and command
/// line flags.
void codegen::setFunctionAttributes(StringRef CPU, StringRef Features,
                                    Function &F) {}

/// Set function attributes of functions in Module M based on CPU,
/// Features, and command line flags.
void codegen::setFunctionAttributes(StringRef CPU, StringRef Features,
                                    Module &M) {}

Expected<std::unique_ptr<TargetMachine>>
codegen::createTargetMachineForTriple(StringRef TargetTriple,
                                      CodeGenOptLevel OptLevel) {}