LLVM  5.0.0
Enumerations | Functions | Variables
llvm::WebAssembly Namespace Reference

Enumerations

enum  Fixups {
  fixup_code_sleb128_i32 = FirstTargetFixupKind, fixup_code_sleb128_i64, fixup_code_uleb128_i32, fixup_code_global_index,
  LastTargetFixupKind, NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
}
 
enum  OperandType {
  OPERAND_BASIC_BLOCK = MCOI::OPERAND_FIRST_TARGET, OPERAND_LOCAL, OPERAND_GLOBAL, OPERAND_I32IMM,
  OPERAND_I64IMM, OPERAND_F32IMM, OPERAND_F64IMM, OPERAND_FUNCTION32,
  OPERAND_OFFSET32, OPERAND_P2ALIGN, OPERAND_SIGNATURE, OPERAND_TYPEINDEX
}
 
enum  ExprType {
  ExprType::Void = -0x40, ExprType::I32 = -0x01, ExprType::I64 = -0x02, ExprType::F32 = -0x03,
  ExprType::F64 = -0x04, ExprType::I8x16 = -0x05, ExprType::I16x8 = -0x06, ExprType::I32x4 = -0x07,
  ExprType::F32x4 = -0x08, ExprType::B8x16 = -0x09, ExprType::B16x8 = -0x0a, ExprType::B32x4 = -0x0b
}
 This is used to indicate block signatures. More...
 

Functions

const char * TypeToString (MVT Ty)
 
const char * TypeToString (wasm::ValType Type)
 
unsigned GetDefaultP2Align (unsigned Opcode)
 Return the default p2align value for a load or store with the given opcode. More...
 
wasm::ValType toValType (const MVT &Ty)
 
FastISel * createFastISel (FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo)
 
bool isArgument (const MachineInstr &MI)
 
bool isCopy (const MachineInstr &MI)
 
bool isTee (const MachineInstr &MI)
 
bool isChild (const MachineInstr &MI, const WebAssemblyFunctionInfo &MFI)
 Test whether MI is a child of some other node in an expression tree. More...
 
bool isCallIndirect (const MachineInstr &MI)
 

Variables

static const unsigned LoadAddressOperandNo = 3
 The operand number of the load or store address in load/store instructions. More...
 
static const unsigned StoreAddressOperandNo = 2
 
static const unsigned LoadP2AlignOperandNo = 1
 The operand number of the load or store p2align in load/store instructions. More...
 
static const unsigned StoreP2AlignOperandNo = 0
 
static const unsigned Nop = 0x01
 Instruction opcodes emitted via means other than CodeGen. More...
 
static const unsigned End = 0x0b
 

Enumeration Type Documentation

This is used to indicate block signatures.

Enumerator
Void 
I32 
I64 
F32 
F64 
I8x16 
I16x8 
I32x4 
F32x4 
B8x16 
B16x8 
B32x4 

Definition at line 151 of file WebAssemblyMCTargetDesc.h.

Enumerator
fixup_code_sleb128_i32 
fixup_code_sleb128_i64 
fixup_code_uleb128_i32 
fixup_code_global_index 
LastTargetFixupKind 
NumTargetFixupKinds 

Definition at line 17 of file WebAssemblyFixupKinds.h.

Enumerator
OPERAND_BASIC_BLOCK 

Basic block label in a branch construct.

OPERAND_LOCAL 

Local index.

OPERAND_GLOBAL 

Global index.

OPERAND_I32IMM 

32-bit integer immediates.

OPERAND_I64IMM 

64-bit integer immediates.

OPERAND_F32IMM 

32-bit floating-point immediates.

OPERAND_F64IMM 

64-bit floating-point immediates.

OPERAND_FUNCTION32 

32-bit unsigned function indices.

OPERAND_OFFSET32 

32-bit unsigned memory offsets.

OPERAND_P2ALIGN 

p2align immediate for load and store address alignment.

OPERAND_SIGNATURE 

signature immediate for block/loop.

OPERAND_TYPEINDEX 

type signature immediate for call_indirect.

Definition at line 49 of file WebAssemblyMCTargetDesc.h.

Function Documentation

FastISel * llvm::WebAssembly::createFastISel ( FunctionLoweringInfo &  funcInfo,
const TargetLibraryInfo *  libInfo 
)

Definition at line 1294 of file WebAssemblyFastISel.cpp.

unsigned llvm::WebAssembly::GetDefaultP2Align ( unsigned  Opcode)
inline

Return the default p2align value for a load or store with the given opcode.

Definition at line 108 of file WebAssemblyMCTargetDesc.h.

References llvm_unreachable().

Referenced by llvm::WebAssemblyInstPrinter::printWebAssemblyP2AlignOperand(), and RewriteP2Align().

bool llvm::WebAssembly::isArgument ( const MachineInstr &  MI)
bool llvm::WebAssembly::isCallIndirect ( const MachineInstr &  MI)
bool llvm::WebAssembly::isChild ( const MachineInstr &  MI,
const WebAssemblyFunctionInfo &  MFI 
)
bool llvm::WebAssembly::isCopy ( const MachineInstr &  MI)

Definition at line 37 of file WebAssemblyUtilities.cpp.

References llvm::MachineInstr::getOpcode().

bool llvm::WebAssembly::isTee ( const MachineInstr &  MI)

Definition at line 49 of file WebAssemblyUtilities.cpp.

References llvm::MachineInstr::getOpcode().

wasm::ValType llvm::WebAssembly::toValType ( const MVT &  Ty)
const char * llvm::WebAssembly::TypeToString ( MVT  Ty)
const char * llvm::WebAssembly::TypeToString ( wasm::ValType  Type)

Variable Documentation

const unsigned llvm::WebAssembly::End = 0x0b
static

Definition at line 168 of file WebAssemblyMCTargetDesc.h.

Referenced by llvm::RuntimePointerChecking::CheckingPtrGroup::addPointer(), llvm::User::allocHungoffUses(), llvm::yaml::BlockScalarNode::BlockScalarNode(), BuildVectorFromScalar(), llvm::calculateClrEHStateNumbers(), llvm::pdb::ClassLayout::ClassLayout(), CloneNodeWithValues(), llvm::codeview::DebugStringTableSubsection::commit(), llvm::ProfileSummaryBuilder::computeDetailedSummary(), llvm::pdb::LayoutItemBase::containsOffset(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::convertWideToUTF8(), llvm::AArch64InstrInfo::copyPhysRegTuple(), decodeUTF8(), llvm::SpecificBumpPtrAllocator< llvm::LazyCallGraph::SCC >::DestroyAll(), llvm::DominatorTree::dominates(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), llvm::WebAssemblyTargetELFStreamer::emitEndFunc(), EmitGenDwarfInfo(), llvm::AArch64FrameLowering::emitPrologue(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::SplitEditor::enterIntvAtEnd(), llvm::GCNIterativeScheduler::enterRegion(), expandBounds(), llvm::MachineFunction::extractLoadMemRefs(), llvm::MachineFunction::extractStoreMemRefs(), llvm::SIScheduleDAGMI::fillVgprSgprCost(), llvm::SchedDFSImpl::finalize(), findCFILocation(), fitsRegularPattern(), llvm::parallel::for_each_n(), fuzzer::ForEachNonZeroByte(), llvm::format_provider< llvm::iterator_range< IterT > >::format(), generateUnsignedDivisionCode(), llvm::DWARFDebugAbbrev::getAbbreviationDeclarationSet(), llvm::MachineLoop::getBottomBlock(), getBoundedStrlen(), llvm::BasicBlockEdge::getEnd(), llvm::Loop::LocRange::getEnd(), llvm::MCDwarfLineTableHeader::getFile(), llvm::DIExpression::getFragmentInfo(), llvm::CodeViewContext::getFunctionLineEntries(), llvm::SystemZTTIImpl::getIntImmCost(), llvm::TargetLibraryInfoImpl::getLibFunc(), llvm::object::ArchiveMemberHeader::getName(), llvm::OperandBundleUser< InvokeInst, User::op_iterator >::getNumTotalBundleOperands(), llvm::RegisterBankInfo::getOperandsMapping(), llvm::GCNIterativeScheduler::getRegionPressure(), llvm::getToken(), llvm::Use::getUser(), llvm::RegisterBankInfo::OperandsMapper::getVRegs(), INITIALIZE_PASS(), llvm::StringSet< AllocatorTy >::insert(), llvm::SetVector< llvm::BasicBlock * >::insert(), llvm::object::ExportDirectoryEntryRef::isForwarder(), llvm::LiveRange::isUndefIn(), llvm::detail::join_impl(), llvm::object::Lexer::lex(), lowerVECTOR_SHUFFLE_ILVEV(), lowerVECTOR_SHUFFLE_ILVL(), lowerVECTOR_SHUFFLE_ILVOD(), lowerVECTOR_SHUFFLE_ILVR(), lowerVECTOR_SHUFFLE_PCKEV(), lowerVECTOR_SHUFFLE_PCKOD(), markIndicesSafe(), MaybeRewriteToFallthrough(), llvm::object::COFFObjectFile::moveSymbolNext(), multikey_qsort(), nextIfDebug(), llvm::BranchProbability::normalizeProbabilities(), llvm::Loop::LocRange::operator bool(), llvm::MCSymbol::operator new(), llvm::parallel::detail::parallel_for_each_n(), llvm::object::WindowsResourceParser::parse(), llvm::opt::OptTable::ParseArgs(), llvm::opt::OptTable::ParseOneArg(), llvm::LLParser::parseTypeAtBeginning(), PlaceBlockMarker(), PlaceLoopMarker(), preassignSwiftErrorRegs(), llvm::RegisterBank::print(), printLivenessInfo(), printRegion(), llvm::programUndefinedIfFullPoison(), rangeOnlyContains(), false::Chain::rangeOverlapsWith(), readCoverageMappingData(), llvm::InstrProfLookupTrait::ReadData(), llvm::GCOVFunction::readGCDA(), llvm::RegisterBankInfo::RegisterBankInfo(), llvm::RuntimeDyldMachOCRTPBase< Impl >::registerEHFrames(), llvm::LiveRange::removeSegment(), llvm::SlotIndexes::repairIndexesInRange(), llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(), replaceFallthroughCoroEnd(), llvm::R600InstrInfo::reserveIndirectRegisters(), llvm::RegBankSelect::runOnMachineFunction(), llvm::yaml::ScalarNode::ScalarNode(), llvm::yaml::Output::scalarString(), scan(), scanInlinedCode(), llvm::yaml::Scanner::setError(), shouldSpeculateInstrs(), shouldUseMmap(), simplifyX86extrq(), simplifyX86insertq(), llvm::simple_ilist< T, Options >::sort(), llvm::stripDebugInfo(), llvm::detail::to_float(), tryBuildVectorReplicate(), tryToreplicateChunks(), UpdatePosition(), llvm::RegisterBank::verify(), and llvm::MachObjectWriter::writeObject().

const unsigned llvm::WebAssembly::LoadAddressOperandNo = 3
static

The operand number of the load or store address in load/store instructions.

Definition at line 143 of file WebAssemblyMCTargetDesc.h.

Referenced by llvm::WebAssemblyRegisterInfo::eliminateFrameIndex().

const unsigned llvm::WebAssembly::LoadP2AlignOperandNo = 1
static

The operand number of the load or store p2align in load/store instructions.

Definition at line 147 of file WebAssemblyMCTargetDesc.h.

const unsigned llvm::WebAssembly::Nop = 0x01
static

Instruction opcodes emitted via means other than CodeGen.

Definition at line 167 of file WebAssemblyMCTargetDesc.h.

Referenced by llvm::HexagonMCInstrInfo::padEndloop().

const unsigned llvm::WebAssembly::StoreAddressOperandNo = 2
static
const unsigned llvm::WebAssembly::StoreP2AlignOperandNo = 0
static

Definition at line 148 of file WebAssemblyMCTargetDesc.h.