mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
38 lines
1,016 B
C++
38 lines
1,016 B
C++
//===-- driver/cl_options-llvm.h - LLVM command line options ----*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#pragma once
|
||
|
||
#include "llvm/ADT/Optional.h"
|
||
#include "llvm/Support/CommandLine.h"
|
||
#include "llvm/Support/CodeGen.h"
|
||
#include "llvm/Target/TargetOptions.h"
|
||
|
||
namespace opts {
|
||
|
||
std::string getArchStr();
|
||
llvm::Optional<llvm::Reloc::Model> getRelocModel();
|
||
#if LDC_LLVM_VER >= 600
|
||
llvm::Optional<llvm::CodeModel::Model> getCodeModel();
|
||
#else
|
||
llvm::CodeModel::Model getCodeModel();
|
||
#endif
|
||
#if LDC_LLVM_VER >= 800
|
||
llvm::Optional<llvm::FramePointer::FP> framePointerUsage();
|
||
#else
|
||
llvm::cl::boolOrDefault disableFPElim();
|
||
#endif
|
||
|
||
bool disableRedZone();
|
||
bool printTargetFeaturesHelp();
|
||
|
||
llvm::TargetOptions InitTargetOptionsFromCodeGenFlags();
|
||
std::string getCPUStr();
|
||
std::string getFeaturesStr();
|
||
}
|