LLVM API Documentation
#include <MSILWriter.h>
Definition at line 58 of file MSILWriter.h.
Definition at line 95 of file MSILWriter.h.
| llvm::MSILWriter::MSILWriter | ( | formatted_raw_ostream & | o | ) | [inline] |
Definition at line 90 of file MSILWriter.h.
Definition at line 105 of file MSILWriter.h.
References ArgumentVT, GlobalVT, InternalVT, and LocalVT.
| virtual const char* llvm::MSILWriter::getPassName | ( | ) | const [inline, virtual] |
getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.
getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.
Reimplemented from llvm::Pass.
Definition at line 113 of file MSILWriter.h.
| void llvm::MSILWriter::getAnalysisUsage | ( | AnalysisUsage & | ) | const [inline, virtual] |
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.
Reimplemented from llvm::Pass.
Definition at line 115 of file MSILWriter.h.
References llvm::AnalysisUsage::addRequired(), and llvm::AnalysisUsage::setPreservesAll().
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Implements llvm::FunctionPass.
Definition at line 89 of file MSILWriter.cpp.
References llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::Function::isDeclaration(), LInfo, and printFunction().
doInitialization - Virtual method overridden by subclasses to do any necessary per-module initialization.
Reimplemented from llvm::FunctionPass.
Definition at line 103 of file MSILWriter.cpp.
References llvm::Module::getTypeSymbolTable(), Mang, ModulePtr, Out, printDeclarations(), printExternals(), printGlobalVariables(), and printModuleStartup().
doFinalization - Virtual method overriden by subclasses to do any post processing needed after all passes have run.
Reimplemented from llvm::FunctionPass.
Definition at line 120 of file MSILWriter.cpp.
References Mang.
| void MSILWriter::printModuleStartup | ( | ) |
Definition at line 126 of file MSILWriter.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_size(), F, llvm::Function::getCallingConv(), getConvModopt(), llvm::Module::getFunction(), llvm::TargetData::getPointerSize(), llvm::Function::getReturnType(), llvm::Type::getTypeID(), getTypeName(), llvm::Function::isDeclaration(), llvm::Type::isInteger(), ModulePtr, Out, llvm::Type::PointerTyID, printPtrLoad(), TD, and llvm::Type::VoidTyID.
Referenced by doInitialization().
Definition at line 225 of file MSILWriter.cpp.
References llvm::CallingConv::C.
Referenced by printGepInstruction().
| std::string MSILWriter::getValueName | ( | const Value * | V | ) |
Definition at line 232 of file MSILWriter.cpp.
References AnonValueNumbers, llvm::Mangler::getMangledName(), GV, Mang, Name, NextAnonValueNumber, No, and llvm::utostr().
Referenced by printExternals(), printFunction(), printFunctionCall(), printGlobalVariables(), printIntrinsicCall(), printLocalVariables(), printStaticConstant(), printValueLoad(), printValueSave(), and printVariableDefinition().
| std::string MSILWriter::getLabelName | ( | const Value * | V | ) |
Definition at line 259 of file MSILWriter.cpp.
References AnonValueNumbers, llvm::Mangler::getMangledName(), GV, Mang, Name, NextAnonValueNumber, No, and llvm::utostr().
Referenced by printBasicBlock(), printBranchToBlock(), and printLoop().
| std::string MSILWriter::getLabelName | ( | const std::string & | Name | ) |
| std::string MSILWriter::getConvModopt | ( | unsigned | CallingConvID | ) |
Definition at line 273 of file MSILWriter.cpp.
References llvm::CallingConv::C, llvm::cerr(), llvm::CallingConv::Cold, llvm::CallingConv::Fast, llvm_unreachable, llvm::CallingConv::X86_FastCall, and llvm::CallingConv::X86_StdCall.
Referenced by printExternals(), printFunction(), printFunctionCall(), printModuleStartup(), and printValueLoad().
| std::string MSILWriter::getArrayTypeName | ( | Type::TypeID | TyID, | |
| const Type * | Ty | |||
| ) |
Definition at line 291 of file MSILWriter.cpp.
References llvm::Type::getTypeID(), getTypeName(), and llvm::utostr().
Referenced by getTypeName().
Definition at line 313 of file MSILWriter.cpp.
References llvm::cerr(), llvm::Type::DoubleTyID, llvm::Type::FloatTyID, getBitWidth(), llvm::Type::getTypeID(), llvm::Type::IntegerTyID, llvm_unreachable, llvm::utostr(), and llvm::Type::VoidTyID.
Referenced by getTypeName(), printStaticConstant(), and printStaticInitializer().
| std::string llvm::MSILWriter::getFunctionTypeName | ( | const Type * | Ty | ) |
| std::string llvm::MSILWriter::getPointerTypeName | ( | const Type * | Ty | ) |
| std::string MSILWriter::getTypeName | ( | const Type * | Ty, | |
| bool | isSigned = false, |
|||
| bool | isNested = false | |||
| ) |
Definition at line 337 of file MSILWriter.cpp.
References llvm::Type::ArrayTyID, llvm::cerr(), getArrayTypeName(), getPrimitiveTypeName(), llvm::Type::getTypeID(), llvm::Module::getTypeName(), llvm::Type::isInteger(), llvm::Type::isPrimitiveType(), llvm_unreachable, ModulePtr, llvm::Type::PointerTyID, llvm::Type::StructTyID, and llvm::Type::VectorTyID.
Referenced by getArrayTypeName(), getCallSignature(), printDeclarations(), printExternals(), printFunction(), printGlobalVariables(), printLocalVariables(), printModuleStartup(), printStaticInitializer(), and printValueLoad().
| MSILWriter::ValueType MSILWriter::getValueLocation | ( | const Value * | V | ) |
Definition at line 365 of file MSILWriter.cpp.
References ArgumentVT, ConstExprVT, ConstVT, F, G, GlobalVT, InternalVT, and LocalVT.
Referenced by printValueLoad(), and printValueSave().
Definition at line 383 of file MSILWriter.cpp.
References llvm::cerr(), llvm::Type::DoubleTyID, llvm::Type::FloatTyID, getBitWidth(), llvm::TargetData::getTypeAllocSize(), llvm::Type::getTypeID(), llvm::Type::IntegerTyID, llvm_unreachable, llvm::Type::PointerTyID, TD, and llvm::utostr().
Referenced by printCastInstruction(), printConstLoad(), printIndirectLoad(), printIndirectSave(), printStaticInitializerList(), and printVAArgInstruction().
| void MSILWriter::printConvToPtr | ( | ) |
Definition at line 409 of file MSILWriter.cpp.
References llvm::Module::getPointerSize(), llvm_unreachable, ModulePtr, llvm::Module::Pointer32, llvm::Module::Pointer64, and printSimpleInstruction().
Referenced by printValuePtrLoad().
| void MSILWriter::printPtrLoad | ( | uint64_t | N | ) |
Definition at line 423 of file MSILWriter.cpp.
References llvm::cerr(), llvm::Module::getPointerSize(), llvm::isUInt32(), llvm_unreachable, ModulePtr, llvm::Module::Pointer32, llvm::Module::Pointer64, printSimpleInstruction(), and llvm::utostr().
Referenced by printAllocaInstruction(), printConstLoad(), printGepInstruction(), printModuleStartup(), printStaticInitializerList(), and printValueLoad().
| void MSILWriter::printValuePtrLoad | ( | const Value * | V | ) |
Definition at line 442 of file MSILWriter.cpp.
References printConvToPtr(), and printValueLoad().
Referenced by printGepInstruction().
| void MSILWriter::printConstLoad | ( | const Constant * | C | ) |
Definition at line 448 of file MSILWriter.cpp.
References llvm::cerr(), llvm::Type::FloatTyID, llvm::Value::getType(), getTypePostfix(), llvm_unreachable, Out, printPtrLoad(), llvm::utohexstr(), and llvm::X.
Referenced by printValueLoad().
| void MSILWriter::printValueLoad | ( | const Value * | V | ) |
Definition at line 479 of file MSILWriter.cpp.
References ArgumentVT, llvm::cerr(), ConstExprVT, ConstVT, F, getCallSignature(), getConvModopt(), llvm::Value::getType(), getTypeName(), getValueLocation(), getValueName(), GlobalVT, InternalVT, llvm_unreachable, LocalVT, Name, printConstantExpr(), printConstLoad(), printPtrLoad(), and printSimpleInstruction().
Referenced by printAllocaInstruction(), printBinaryInstruction(), printBranchInstruction(), printCallInstruction(), printCastInstruction(), printFunctionCall(), printIndirectLoad(), printIndirectSave(), printInstruction(), printIntrinsicCall(), printInvokeInstruction(), printPHICopy(), printSelectInstruction(), printStaticInitializerList(), printSwitchInstruction(), and printValuePtrLoad().
| void MSILWriter::printValueSave | ( | const Value * | V | ) |
Definition at line 527 of file MSILWriter.cpp.
References ArgumentVT, llvm::cerr(), getValueLocation(), getValueName(), llvm_unreachable, LocalVT, and printSimpleInstruction().
Referenced by printBasicBlock(), printInvokeInstruction(), and printPHICopy().
| void MSILWriter::printBinaryInstruction | ( | const char * | Name, | |
| const Value * | Left, | |||
| const Value * | Right | |||
| ) |
Definition at line 542 of file MSILWriter.cpp.
References Out, and printValueLoad().
Referenced by printConstantExpr(), printFCmpInstruction(), printICmpInstruction(), and printInstruction().
| void MSILWriter::printSimpleInstruction | ( | const char * | Inst, | |
| const char * | Operand = NULL | |||
| ) |
Definition at line 550 of file MSILWriter.cpp.
References Out.
Referenced by printAllocaInstruction(), printBranchToBlock(), printCastInstruction(), printConvToPtr(), printExternals(), printFCmpInstruction(), printFunctionCall(), printGepInstruction(), printICmpInstruction(), printIndirectLoad(), printIndirectSave(), printInstruction(), printIntrinsicCall(), printInvokeInstruction(), printLocalVariables(), printLoop(), printPtrLoad(), printSelectInstruction(), printStaticInitializerList(), printSwitchInstruction(), printVAArgInstruction(), printValueLoad(), and printValueSave().
| void MSILWriter::printPHICopy | ( | const BasicBlock * | Src, | |
| const BasicBlock * | Dst | |||
| ) |
Definition at line 558 of file MSILWriter.cpp.
References llvm::BasicBlock::begin(), E, llvm::BasicBlock::end(), llvm::PHINode::getIncomingValueForBlock(), Phi, printValueLoad(), printValueSave(), and Val.
Referenced by printBranchToBlock().
| void MSILWriter::printBranchToBlock | ( | const BasicBlock * | CurrBB, | |
| const BasicBlock * | TrueBB, | |||
| const BasicBlock * | FalseBB | |||
| ) |
Definition at line 570 of file MSILWriter.cpp.
References llvm::BasicBlock::begin(), getLabelName(), Out, printPHICopy(), printSimpleInstruction(), and llvm::utostr().
Referenced by printBranchInstruction(), printInvokeInstruction(), and printSwitchInstruction().
| void MSILWriter::printBranchInstruction | ( | const BranchInst * | Inst | ) |
Definition at line 613 of file MSILWriter.cpp.
References llvm::BranchInst::getCondition(), llvm::Instruction::getParent(), llvm::BranchInst::getSuccessor(), llvm::BranchInst::isUnconditional(), printBranchToBlock(), and printValueLoad().
Referenced by printInstruction().
| void MSILWriter::printSelectInstruction | ( | const Value * | Cond, | |
| const Value * | VTrue, | |||
| const Value * | VFalse | |||
| ) |
Definition at line 624 of file MSILWriter.cpp.
References Out, printSimpleInstruction(), printValueLoad(), and llvm::utostr().
Referenced by printConstantExpr(), and printInstruction().
| void MSILWriter::printIndirectLoad | ( | const Value * | V | ) |
Definition at line 636 of file MSILWriter.cpp.
References llvm::Value::getType(), getTypePostfix(), printSimpleInstruction(), printValueLoad(), and Ty.
Referenced by printInstruction(), printIntrinsicCall(), and printVAArgInstruction().
Definition at line 646 of file MSILWriter.cpp.
References llvm::Value::getType(), and printValueLoad().
Referenced by printExternals(), printInstruction(), and printIntrinsicCall().
| void MSILWriter::printIndirectSave | ( | const Type * | Ty | ) |
Definition at line 653 of file MSILWriter.cpp.
References getTypePostfix(), and printSimpleInstruction().
| void MSILWriter::printCastInstruction | ( | unsigned int | Op, | |
| const Value * | V, | |||
| const Type * | Ty, | |||
| const Type * | SrcTy = 0 | |||
| ) |
Definition at line 662 of file MSILWriter.cpp.
References BitCast, llvm::cerr(), FPToUI, FPTrunc, getTypePostfix(), llvm_unreachable, printSimpleInstruction(), printValueLoad(), PtrToInt, llvm::Attribute::SExt, UIToFP, and ZExt.
Referenced by printConstantExpr(), and printInstruction().
| void MSILWriter::printGepInstruction | ( | const Value * | V, | |
| gep_type_iterator | I, | |||
| gep_type_iterator | E | |||
| ) |
Definition at line 704 of file MSILWriter.cpp.
References llvm::CallingConv::C, F, llvm::generic_gep_type_iterator< ItTy >::getOperand(), llvm::TargetData::getTypeAllocSize(), isZeroValue(), printPtrLoad(), printSimpleInstruction(), printValuePtrLoad(), and TD.
Referenced by printConstantExpr(), and printInstruction().
| std::string MSILWriter::getCallSignature | ( | const FunctionType * | Ty, | |
| const Instruction * | Inst, | |||
| std::string | Name | |||
| ) |
Definition at line 747 of file MSILWriter.cpp.
References llvm::User::getNumOperands(), llvm::FunctionType::getNumParams(), llvm::User::getOperand(), llvm::FunctionType::getParamType(), llvm::FunctionType::getReturnType(), llvm::Value::getType(), getTypeName(), and llvm::FunctionType::isVarArg().
Referenced by printExternals(), printFunctionCall(), and printValueLoad().
| void MSILWriter::printFunctionCall | ( | const Value * | FnVal, | |
| const Instruction * | Inst | |||
| ) |
Definition at line 780 of file MSILWriter.cpp.
References llvm::Call, llvm::errs(), F, getCallSignature(), getConvModopt(), llvm::SequentialType::getElementType(), llvm::Value::getName(), llvm::Value::getType(), getValueName(), llvm_unreachable, Name, printSimpleInstruction(), and printValueLoad().
Referenced by printCallInstruction(), and printInvokeInstruction().
| void MSILWriter::printIntrinsicCall | ( | const IntrinsicInst * | Inst | ) |
Definition at line 808 of file MSILWriter.cpp.
References llvm::errs(), llvm::IntegerType::get(), llvm::Value::getContext(), llvm::IntrinsicInst::getIntrinsicID(), llvm::User::getOperand(), llvm::PointerType::getUnqual(), getValueName(), llvm_unreachable, Name, printIndirectLoad(), printIndirectSave(), printSimpleInstruction(), printValueLoad(), llvm::Intrinsic::vacopy, llvm::Intrinsic::vaend, and llvm::Intrinsic::vastart.
Referenced by printCallInstruction().
| void MSILWriter::printCallInstruction | ( | const Instruction * | Inst | ) |
Definition at line 844 of file MSILWriter.cpp.
References E, llvm::User::getNumOperands(), llvm::User::getOperand(), printFunctionCall(), printIntrinsicCall(), and printValueLoad().
Referenced by printInstruction().
| void MSILWriter::printICmpInstruction | ( | unsigned | Predicate, | |
| const Value * | Left, | |||
| const Value * | Right | |||
| ) |
Definition at line 857 of file MSILWriter.cpp.
References llvm::errs(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, llvm_unreachable, printBinaryInstruction(), and printSimpleInstruction().
Referenced by printConstantExpr(), and printInstruction().
| void MSILWriter::printFCmpInstruction | ( | unsigned | Predicate, | |
| const Value * | Left, | |||
| const Value * | Right | |||
| ) |
Definition at line 908 of file MSILWriter.cpp.
References llvm::CmpInst::FCMP_OEQ, llvm::CmpInst::FCMP_OGE, llvm::CmpInst::FCMP_OGT, llvm::CmpInst::FCMP_OLE, llvm::CmpInst::FCMP_OLT, llvm::CmpInst::FCMP_ONE, llvm::CmpInst::FCMP_ORD, llvm::CmpInst::FCMP_UEQ, llvm::CmpInst::FCMP_UGE, llvm::CmpInst::FCMP_UGT, llvm::CmpInst::FCMP_ULE, llvm::CmpInst::FCMP_ULT, llvm::CmpInst::FCMP_UNE, llvm::CmpInst::FCMP_UNO, llvm_unreachable, printBinaryInstruction(), and printSimpleInstruction().
Referenced by printConstantExpr(), and printInstruction().
| void MSILWriter::printInvokeInstruction | ( | const InvokeInst * | Inst | ) |
Definition at line 1002 of file MSILWriter.cpp.
References E, llvm::InvokeInst::getNormalDest(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::InvokeInst::getUnwindDest(), Out, printBranchToBlock(), printFunctionCall(), printSimpleInstruction(), printValueLoad(), printValueSave(), and llvm::utostr().
Referenced by printInstruction().
| void MSILWriter::printSwitchInstruction | ( | const SwitchInst * | Inst | ) |
Definition at line 1024 of file MSILWriter.cpp.
References E, llvm::SwitchInst::getCaseValue(), llvm::SwitchInst::getCondition(), llvm::SwitchInst::getDefaultDest(), llvm::SwitchInst::getNumCases(), llvm::Instruction::getParent(), llvm::SwitchInst::getSuccessor(), printBranchToBlock(), printSimpleInstruction(), and printValueLoad().
Referenced by printInstruction().
| void MSILWriter::printVAArgInstruction | ( | const VAArgInst * | Inst | ) |
Definition at line 1039 of file MSILWriter.cpp.
References llvm::IntegerType::get(), llvm::Value::getContext(), llvm::User::getOperand(), getTypePostfix(), llvm::PointerType::getUnqual(), Name, printIndirectLoad(), and printSimpleInstruction().
Referenced by printInstruction().
| void MSILWriter::printAllocaInstruction | ( | const AllocaInst * | Inst | ) |
Definition at line 1051 of file MSILWriter.cpp.
References llvm::AllocationInst::getAllocatedType(), llvm::User::getOperand(), llvm::TargetData::getTypeAllocSize(), printPtrLoad(), printSimpleInstruction(), printValueLoad(), and TD.
Referenced by printInstruction().
| void MSILWriter::printInstruction | ( | const Instruction * | Inst | ) |
Definition at line 1065 of file MSILWriter.cpp.
References llvm::APIntOps::And(), BitCast, Call, llvm::errs(), FCmp, FPToUI, FPTrunc, llvm::gep_type_begin(), llvm::gep_type_end(), llvm::Value::getName(), llvm::User::getNumOperands(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), getPredicate(), llvm_unreachable, Load, LShr, Malloc, llvm::APIntOps::Or(), printAllocaInstruction(), printBinaryInstruction(), printBranchInstruction(), printCallInstruction(), printCastInstruction(), printFCmpInstruction(), printGepInstruction(), printICmpInstruction(), printIndirectLoad(), printIndirectSave(), printInvokeInstruction(), printSelectInstruction(), printSimpleInstruction(), printSwitchInstruction(), printVAArgInstruction(), printValueLoad(), PtrToInt, llvm::MipsISD::Ret, llvm::Attribute::SExt, llvm::SPII::Store, UIToFP, VAArg, llvm::APIntOps::Xor(), and ZExt.
Referenced by printBasicBlock().
| void MSILWriter::printLoop | ( | const Loop * | L | ) |
Definition at line 1216 of file MSILWriter.cpp.
References BB, E, llvm::LoopBase< BlockT, LoopT >::getBlocks(), llvm::LoopBase< BlockT, LoopT >::getHeader(), getLabelName(), llvm::LoopInfo::getLoopFor(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), LInfo, Out, printBasicBlock(), and printSimpleInstruction().
Referenced by printFunctionBody().
| void MSILWriter::printBasicBlock | ( | const BasicBlock * | BB | ) |
Definition at line 1231 of file MSILWriter.cpp.
References llvm::BasicBlock::begin(), E, llvm::BasicBlock::end(), llvm::BasicBlock::getContext(), getLabelName(), llvm::Instruction::getOpcode(), llvm::Value::getType(), llvm::Type::getVoidTy(), Inst, Out, PHI, printInstruction(), and printValueSave().
Referenced by printFunctionBody(), and printLoop().
| void MSILWriter::printLocalVariables | ( | const Function & | F | ) |
Definition at line 1251 of file MSILWriter.cpp.
References AI, Call, llvm::dyn_cast(), E, llvm::AllocationInst::getAllocatedType(), llvm::Function::getContext(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), getTypeName(), llvm::PointerType::getUnqual(), getValueName(), llvm::Type::getVoidTy(), Inst, llvm::inst_begin(), llvm::inst_end(), Name, Out, printSimpleInstruction(), Ty, llvm::utostr(), llvm::Intrinsic::vacopy, llvm::Intrinsic::vaend, and llvm::Intrinsic::vastart.
Referenced by printFunction().
| void MSILWriter::printFunctionBody | ( | const Function & | F | ) |
Definition at line 1308 of file MSILWriter.cpp.
References llvm::Function::begin(), E, llvm::Function::end(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::LoopInfo::getLoopFor(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), L, LInfo, printBasicBlock(), and printLoop().
Referenced by printFunction().
| void MSILWriter::printConstantExpr | ( | const ConstantExpr * | CE | ) |
Definition at line 1321 of file MSILWriter.cpp.
References llvm::APIntOps::And(), BitCast, llvm::errs(), FCmp, FPToUI, FPTrunc, llvm::gep_type_begin(), llvm::gep_type_end(), llvm::User::getNumOperands(), llvm::ConstantExpr::getOpcode(), llvm::Constant::getOperand(), llvm::ConstantExpr::getPredicate(), llvm::Value::getType(), llvm_unreachable, LShr, llvm::APIntOps::Or(), printBinaryInstruction(), printCastInstruction(), printFCmpInstruction(), printGepInstruction(), printICmpInstruction(), printSelectInstruction(), PtrToInt, llvm::Attribute::SExt, UIToFP, llvm::APIntOps::Xor(), and ZExt.
Referenced by printStaticInitializerList(), and printValueLoad().
| void MSILWriter::printStaticInitializerList | ( | ) |
Definition at line 1404 of file MSILWriter.cpp.
References E, llvm::errs(), getTypePostfix(), llvm_unreachable, printConstantExpr(), printPtrLoad(), printSimpleInstruction(), printValueLoad(), and StaticInitList.
Referenced by printExternals().
| void MSILWriter::printFunction | ( | const Function & | F | ) |
Definition at line 1440 of file MSILWriter.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), E, llvm::Function::getCallingConv(), getConvModopt(), llvm::Function::getReturnType(), getTypeName(), getValueName(), llvm::GlobalValue::hasLocalLinkage(), llvm::Function::isVarArg(), Out, llvm::Function::paramHasAttr(), printFunctionBody(), printLocalVariables(), and llvm::Attribute::SExt.
Referenced by runOnFunction().
| void MSILWriter::printDeclarations | ( | const TypeSymbolTable & | ST | ) |
Definition at line 1465 of file MSILWriter.cpp.
References llvm::TargetData::getTypeAllocSize(), getTypeName(), Name, Out, TD, Ty, and UsedTypes.
Referenced by doInitialization().
Definition at line 1485 of file MSILWriter.cpp.
References llvm::errs(), llvm::Type::getPrimitiveSizeInBits(), and llvm_unreachable.
Referenced by getPrimitiveTypeName(), and getTypePostfix().
| void MSILWriter::printStaticConstant | ( | const Constant * | C, | |
| uint64_t & | Offset | |||
| ) |
Definition at line 1503 of file MSILWriter.cpp.
References llvm::Type::ArrayTyID, llvm::APFloat::bitcastToAPInt(), llvm::Type::DoubleTyID, E, llvm::errs(), llvm::Type::FloatTyID, G, llvm::User::getNumOperands(), llvm::Constant::getOperand(), getPrimitiveTypeName(), llvm::ConstantInt::getSExtValue(), llvm::Value::getType(), llvm::TargetData::getTypeAllocSize(), llvm::Type::getTypeID(), llvm::ConstantFP::getValueAPF(), getValueName(), llvm::APInt::getZExtValue(), InitListPtr, llvm::Type::IntegerTyID, llvm::Constant::isNullValue(), llvm_unreachable, Out, llvm::Type::PointerTyID, llvm::Type::StructTyID, TD, Ty, and llvm::Type::VectorTyID.
Referenced by printStaticInitializer().
| void MSILWriter::printStaticInitializer | ( | const Constant * | C, | |
| const std::string & | Name | |||
| ) |
Definition at line 1566 of file MSILWriter.cpp.
References llvm::Type::ArrayTyID, llvm::Type::DoubleTyID, llvm::errs(), llvm::Type::FloatTyID, getPrimitiveTypeName(), llvm::Value::getType(), llvm::Type::getTypeID(), getTypeName(), llvm::Type::IntegerTyID, llvm_unreachable, Out, llvm::Type::PointerTyID, printStaticConstant(), llvm::Type::StructTyID, and llvm::Type::VectorTyID.
Referenced by printVariableDefinition().
| void MSILWriter::printVariableDefinition | ( | const GlobalVariable * | G | ) |
Definition at line 1595 of file MSILWriter.cpp.
References llvm::CallingConv::C, llvm::GlobalVariable::getInitializer(), getValueName(), InitListPtr, llvm::Constant::isNullValue(), printStaticInitializer(), and StaticInitList.
Referenced by printGlobalVariables().
| void MSILWriter::printGlobalVariables | ( | ) |
Definition at line 1605 of file MSILWriter.cpp.
References E, getTypeName(), getValueName(), llvm::Module::global_begin(), llvm::Module::global_empty(), llvm::Module::global_end(), ModulePtr, Out, and printVariableDefinition().
Referenced by doInitialization().
| const char * MSILWriter::getLibraryName | ( | const Function * | F | ) |
Definition at line 1620 of file MSILWriter.cpp.
References llvm::Function::getCallingConv(), getLibraryForSymbol(), and llvm::Value::getName().
Referenced by printExternals().
| const char * MSILWriter::getLibraryName | ( | const GlobalVariable * | GV | ) |
Definition at line 1625 of file MSILWriter.cpp.
References getLibraryForSymbol(), llvm::Mangler::getMangledName(), and Mang.
| void MSILWriter::printExternals | ( | ) |
Definition at line 1638 of file MSILWriter.cpp.
References llvm::Module::begin(), E, llvm::Module::end(), F, llvm::Function::getCallingConv(), getCallSignature(), getConvModopt(), llvm::Function::getFunctionType(), getLibraryName(), llvm::Mangler::getMangledName(), getTypeName(), getValueName(), llvm::Module::global_begin(), llvm::Module::global_end(), Mang, ModulePtr, Name, Out, printIndirectSave(), printSimpleInstruction(), printStaticInitializerList(), and llvm::utostr().
Referenced by doInitialization().
Definition at line 77 of file MSILWriter.h.
Referenced by doInitialization(), printBasicBlock(), printBinaryInstruction(), printBranchToBlock(), printConstLoad(), printDeclarations(), printExternals(), printFunction(), printGlobalVariables(), printInvokeInstruction(), printLocalVariables(), printLoop(), printModuleStartup(), printSelectInstruction(), printSimpleInstruction(), printStaticConstant(), and printStaticInitializer().
Definition at line 78 of file MSILWriter.h.
Referenced by doInitialization(), getTypeName(), printConvToPtr(), printExternals(), printGlobalVariables(), printModuleStartup(), and printPtrLoad().
| const TargetData* llvm::MSILWriter::TD |
Definition at line 79 of file MSILWriter.h.
Referenced by llvm::MSILTarget::addPassesToEmitWholeFile(), getTypePostfix(), printAllocaInstruction(), printDeclarations(), printGepInstruction(), printModuleStartup(), and printStaticConstant().
Definition at line 80 of file MSILWriter.h.
Referenced by doFinalization(), doInitialization(), getLabelName(), getLibraryName(), getValueName(), and printExternals().
Definition at line 81 of file MSILWriter.h.
Referenced by printFunctionBody(), printLoop(), and runOnFunction().
| std::vector<StaticInitializer>* llvm::MSILWriter::InitListPtr |
Definition at line 82 of file MSILWriter.h.
Referenced by printStaticConstant(), and printVariableDefinition().
| std::map<const GlobalVariable*,std::vector<StaticInitializer> > llvm::MSILWriter::StaticInitList |
Definition at line 84 of file MSILWriter.h.
Referenced by printStaticInitializerList(), and printVariableDefinition().
| const std::set<const Type *>* llvm::MSILWriter::UsedTypes |
Definition at line 85 of file MSILWriter.h.
Referenced by llvm::MSILTarget::addPassesToEmitWholeFile(), and printDeclarations().
char MSILWriter::ID = 0 [static] |
Definition at line 86 of file MSILWriter.h.