diff options
-rw-r--r-- | llvm/include/llvm/Transforms/Utils/SizeOpts.h | 16 | ||||
-rw-r--r-- | llvm/lib/Target/RISCV/RISCVInstrInfo.cpp | 4 |
2 files changed, 9 insertions, 11 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/SizeOpts.h b/llvm/include/llvm/Transforms/Utils/SizeOpts.h index ba0f86c4526..1137c89195a 100644 --- a/llvm/include/llvm/Transforms/Utils/SizeOpts.h +++ b/llvm/include/llvm/Transforms/Utils/SizeOpts.h @@ -17,15 +17,13 @@ #include "llvm/Analysis/ProfileSummaryInfo.h" #include "llvm/Support/CommandLine.h" -using namespace llvm; - -extern cl::opt<bool> EnablePGSO; -extern cl::opt<bool> PGSOLargeWorkingSetSizeOnly; -extern cl::opt<bool> PGSOIRPassOrTestOnly; -extern cl::opt<bool> PGSOColdCodeOnly; -extern cl::opt<bool> ForcePGSO; -extern cl::opt<int> PgsoCutoffInstrProf; -extern cl::opt<int> PgsoCutoffSampleProf; +extern llvm::cl::opt<bool> EnablePGSO; +extern llvm::cl::opt<bool> PGSOLargeWorkingSetSizeOnly; +extern llvm::cl::opt<bool> PGSOIRPassOrTestOnly; +extern llvm::cl::opt<bool> PGSOColdCodeOnly; +extern llvm::cl::opt<bool> ForcePGSO; +extern llvm::cl::opt<int> PgsoCutoffInstrProf; +extern llvm::cl::opt<int> PgsoCutoffSampleProf; namespace llvm { diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp index 3b416ce3d3f..f6bc52968a3 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp @@ -24,14 +24,14 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/TargetRegistry.h" +using namespace llvm; + #define GEN_CHECK_COMPRESS_INSTR #include "RISCVGenCompressInstEmitter.inc" #define GET_INSTRINFO_CTOR_DTOR #include "RISCVGenInstrInfo.inc" -using namespace llvm; - RISCVInstrInfo::RISCVInstrInfo(RISCVSubtarget &STI) : RISCVGenInstrInfo(RISCV::ADJCALLSTACKDOWN, RISCV::ADJCALLSTACKUP), STI(STI) {} |