LLVM API Documentation
#include "CTargetMachine.h"#include "llvm/CallingConv.h"#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/Module.h"#include "llvm/Instructions.h"#include "llvm/Pass.h"#include "llvm/PassManager.h"#include "llvm/TypeSymbolTable.h"#include "llvm/Intrinsics.h"#include "llvm/IntrinsicInst.h"#include "llvm/InlineAsm.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Analysis/ConstantsScanner.h"#include "llvm/Analysis/FindUsedTypes.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/CodeGen/Passes.h"#include "llvm/CodeGen/IntrinsicLowering.h"#include "llvm/Transforms/Scalar.h"#include "llvm/Target/TargetAsmInfo.h"#include "llvm/Target/TargetData.h"#include "llvm/Target/TargetRegistry.h"#include "llvm/Support/CallSite.h"#include "llvm/Support/CFG.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/FormattedStream.h"#include "llvm/Support/GetElementPtrTypeIterator.h"#include "llvm/Support/InstVisitor.h"#include "llvm/Support/Mangler.h"#include "llvm/Support/MathExtras.h"#include "llvm/System/Host.h"#include "llvm/Config/config.h"#include <algorithm>#include <sstream>#include "llvm/Intrinsics.gen"
Go to the source code of this file.
Defines | |
| #define | GET_GCC_BUILTIN_NAME |
| #define | GET_GCC_BUILTIN_NAME |
Enumerations | |
| enum | SpecialGlobalClass { NotSpecial = 0, GlobalCtors, GlobalDtors, NotPrinted } |
Functions | |
| void | LLVMInitializeCBackendTarget () |
| static bool | isFPCSafeToPrint (const ConstantFP *CFP) |
| static void | generateCompilerSpecificCode (formatted_raw_ostream &Out, const TargetData *TD) |
| static void | FindStaticTors (GlobalVariable *GV, std::set< Function * > &StaticTors) |
| static SpecialGlobalClass | getGlobalVariableClass (const GlobalVariable *GV) |
| static void | PrintEscapedString (const char *Str, unsigned Length, raw_ostream &Out) |
| static void | PrintEscapedString (const std::string &Str, raw_ostream &Out) |
| static bool | isFPIntBitCast (const Instruction &I) |
| static const char * | getFloatBitCastField (const Type *Ty) |
| static std::string | gccifyAsm (std::string asmstr) |
| #define GET_GCC_BUILTIN_NAME |
| #define GET_GCC_BUILTIN_NAME |
| enum SpecialGlobalClass |
Definition at line 1799 of file CBackend.cpp.
| static void FindStaticTors | ( | GlobalVariable * | GV, | |
| std::set< Function * > & | StaticTors | |||
| ) | [static] |
FindStaticTors - Given a static ctor/dtor list, unpack its contents into the StaticTors set.
Definition at line 1780 of file CBackend.cpp.
References llvm::dyn_cast(), llvm::GlobalVariable::getInitializer(), llvm::User::getNumOperands(), llvm::Constant::getOperand(), and llvm::ConstantExpr::isCast().
| static std::string gccifyAsm | ( | std::string | asmstr | ) | [static] |
Definition at line 3265 of file CBackend.cpp.
| static void generateCompilerSpecificCode | ( | formatted_raw_ostream & | Out, | |
| const TargetData * | TD | |||
| ) | [static] |
Definition at line 1648 of file CBackend.cpp.
| static const char* getFloatBitCastField | ( | const Type * | Ty | ) | [static] |
Definition at line 2831 of file CBackend.cpp.
References llvm::Type::getTypeID(), and llvm_unreachable.
| static SpecialGlobalClass getGlobalVariableClass | ( | const GlobalVariable * | GV | ) | [static] |
getGlobalVariableClass - If this is a global that is specially recognized by LLVM, return a code that indicates how we should handle it.
Definition at line 1807 of file CBackend.cpp.
References llvm::Value::getName(), llvm::GlobalValue::getSection(), GlobalCtors, GlobalDtors, llvm::GlobalValue::hasAppendingLinkage(), NotPrinted, NotSpecial, and llvm::Value::use_empty().
| static bool isFPCSafeToPrint | ( | const ConstantFP * | CFP | ) | [static] |
Definition at line 859 of file CBackend.cpp.
References llvm::lltok::APFloat, llvm::APFloat::bitwiseIsEqual(), llvm::APFloat::convert(), llvm::APFloat::convertToDouble(), llvm::ftostr(), llvm::Value::getContext(), llvm::Value::getType(), and llvm::ConstantFP::getValueAPF().
| static bool isFPIntBitCast | ( | const Instruction & | I | ) | [inline, static] |
Definition at line 2382 of file CBackend.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), llvm::Type::isFloatingPoint(), and llvm::Type::isInteger().
| void LLVMInitializeCBackendTarget | ( | ) |
| static void PrintEscapedString | ( | const std::string & | Str, | |
| raw_ostream & | Out | |||
| ) | [static] |
| static void PrintEscapedString | ( | const char * | Str, | |
| unsigned | Length, | |||
| raw_ostream & | Out | |||
| ) | [static] |
Definition at line 1826 of file CBackend.cpp.
References llvm::hexdigit().
Referenced by llvm::Value::print(), PrintEscapedString(), PrintLLVMName(), and WriteConstantInt().
| DenseMap<const Value*, unsigned> AnonValueNumbers |
Definition at line 97 of file CBackend.cpp.
| std::set<const Argument*> ByValParams |
Definition at line 94 of file CBackend.cpp.
| std::map<const ConstantFP *, unsigned> FPConstantMap |
Definition at line 92 of file CBackend.cpp.
Definition at line 95 of file CBackend.cpp.
char ID [static] |
Definition at line 65 of file CBackend.cpp.
Definition at line 85 of file CBackend.cpp.
| std::set<Function*> intrinsicPrototypesAlreadyGenerated |
Definition at line 93 of file CBackend.cpp.
Definition at line 87 of file CBackend.cpp.
Definition at line 86 of file CBackend.cpp.
Definition at line 98 of file CBackend.cpp.
Definition at line 96 of file CBackend.cpp.
Definition at line 84 of file CBackend.cpp.
| const TargetAsmInfo* TAsm |
Definition at line 89 of file CBackend.cpp.
| const TargetData* TD |
Definition at line 90 of file CBackend.cpp.
Definition at line 88 of file CBackend.cpp.
Definition at line 91 of file CBackend.cpp.