LLVM API Documentation
00001 //===- UseListOrder.cpp - Implement Use List Order ------------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // Implement structures and command-line options for preserving use-list order. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "llvm/IR/UseListOrder.h" 00015 #include "llvm/Support/CommandLine.h" 00016 00017 using namespace llvm; 00018 00019 static cl::opt<bool> PreserveBitcodeUseListOrder( 00020 "preserve-bc-use-list-order", 00021 cl::desc("Experimental support to preserve bitcode use-list order."), 00022 cl::init(false), cl::Hidden); 00023 00024 static cl::opt<bool> PreserveAssemblyUseListOrder( 00025 "preserve-ll-use-list-order", 00026 cl::desc("Experimental support to preserve assembly use-list order."), 00027 cl::init(false), cl::Hidden); 00028 00029 bool llvm::shouldPreserveBitcodeUseListOrder() { 00030 return PreserveBitcodeUseListOrder; 00031 } 00032 00033 bool llvm::shouldPreserveAssemblyUseListOrder() { 00034 return PreserveAssemblyUseListOrder; 00035 } 00036 00037 void llvm::setPreserveBitcodeUseListOrder(bool ShouldPreserve) { 00038 PreserveBitcodeUseListOrder = ShouldPreserve; 00039 } 00040 00041 void llvm::setPreserveAssemblyUseListOrder(bool ShouldPreserve) { 00042 PreserveAssemblyUseListOrder = ShouldPreserve; 00043 }