LLVM
10.0.0svn
|
#include "llvm/Config/llvm-config.h"
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | __has_feature(x) 0 |
#define | __has_extension(x) 0 |
#define | __has_attribute(x) 0 |
#define | __has_builtin(x) 0 |
#define | LLVM_HAS_CPP_ATTRIBUTE(x) 0 |
#define | LLVM_GNUC_PREREQ(maj, min, patch) 0 |
LLVM_GNUC_PREREQ Extend the default __GNUC_PREREQ even if glibc's features.h isn't available. More... | |
#define | LLVM_MSC_PREREQ(version) 0 |
LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common More... | |
#define | LLVM_HAS_RVALUE_REFERENCE_THIS 0 |
Does the compiler support ref-qualifiers for *this? More... | |
#define | LLVM_LVALUE_FUNCTION |
Expands to '&' if ref-qualifiers for *this are supported. More... | |
#define | LLVM_LIBRARY_VISIBILITY |
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library, then the class should be private to the library and not accessible from outside it. More... | |
#define | LLVM_PREFETCH(addr, rw, locality) |
#define | LLVM_ATTRIBUTE_USED |
#define | LLVM_NODISCARD |
LLVM_NODISCARD - Warn if a type or return value is discarded. More... | |
#define | LLVM_ATTRIBUTE_REINITIALIZES |
#define | LLVM_ATTRIBUTE_UNUSED |
#define | LLVM_ATTRIBUTE_WEAK |
#define | LLVM_READNONE |
#define | LLVM_READONLY |
#define | LLVM_LIKELY(EXPR) (EXPR) |
#define | LLVM_UNLIKELY(EXPR) (EXPR) |
#define | LLVM_ATTRIBUTE_NOINLINE |
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inlining". More... | |
#define | LLVM_ATTRIBUTE_ALWAYS_INLINE |
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always inline" because it is performance sensitive. More... | |
#define | LLVM_ATTRIBUTE_NORETURN |
#define | LLVM_ATTRIBUTE_RETURNS_NONNULL |
#define | LLVM_ATTRIBUTE_RETURNS_NOALIAS |
LLVM_ATTRIBUTE_RETURNS_NOALIAS Used to mark a function as returning a pointer that does not alias any other valid pointer. More... | |
#define | LLVM_FALLTHROUGH |
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements. More... | |
#define | LLVM_REQUIRE_CONSTANT_INITIALIZATION |
LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized. More... | |
#define | LLVM_EXTENSION |
LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics. More... | |
#define | LLVM_ATTRIBUTE_DEPRECATED(decl, message) decl |
#define | LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0 |
LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands to an expression which states that it is undefined behavior for the compiler to reach this point. More... | |
#define | LLVM_BUILTIN_DEBUGTRAP |
LLVM_BUILTIN_DEBUGTRAP - On compilers which support it, expands to an expression which causes the program to break while running under a debugger. More... | |
#define | LLVM_ASSUME_ALIGNED(p, a) (p) |
LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment. More... | |
#define | LLVM_PACKED(d) d __attribute__((packed)) |
LLVM_PACKED Used to specify a packed structure. More... | |
#define | LLVM_PACKED_START _Pragma("pack(push, 1)") |
#define | LLVM_PACKED_END _Pragma("pack(pop)") |
#define | LLVM_PTR_SIZE sizeof(void *) |
LLVM_PTR_SIZE A constant integer equivalent to the value of sizeof(void*). More... | |
#define | LLVM_MEMORY_SANITIZER_BUILD 0 |
LLVM_MEMORY_SANITIZER_BUILD Whether LLVM itself is built with MemorySanitizer instrumentation. More... | |
#define | __msan_allocated_memory(p, size) |
#define | __msan_unpoison(p, size) |
#define | LLVM_ADDRESS_SANITIZER_BUILD 0 |
LLVM_ADDRESS_SANITIZER_BUILD Whether LLVM itself is built with AddressSanitizer instrumentation. More... | |
#define | __asan_poison_memory_region(p, size) |
#define | __asan_unpoison_memory_region(p, size) |
#define | LLVM_THREAD_SANITIZER_BUILD 0 |
LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation. More... | |
#define | TsanHappensBefore(cv) |
#define | TsanHappensAfter(cv) |
#define | TsanIgnoreWritesBegin() |
#define | TsanIgnoreWritesEnd() |
#define | LLVM_NO_SANITIZE(KIND) |
LLVM_NO_SANITIZE Disable a particular sanitizer for a function. More... | |
#define | LLVM_DUMP_METHOD LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED |
Mark debug helper function definitions like dump() that should not be stripped from debug builds. More... | |
#define | LLVM_PRETTY_FUNCTION __func__ |
LLVM_PRETTY_FUNCTION Gets a user-friendly looking function signature for the current scope using the best available method on each platform. More... | |
#define | LLVM_THREAD_LOCAL __thread |
LLVM_THREAD_LOCAL A thread-local storage specifier which can be used with globals, extern globals, and static globals. More... | |
#define __asan_poison_memory_region | ( | p, | |
size | |||
) |
Definition at line 422 of file Compiler.h.
Referenced by llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::Deallocate().
#define __asan_unpoison_memory_region | ( | p, | |
size | |||
) |
Definition at line 423 of file Compiler.h.
#define __has_attribute | ( | x | ) | 0 |
Definition at line 38 of file Compiler.h.
#define __has_builtin | ( | x | ) | 0 |
Definition at line 42 of file Compiler.h.
#define __has_extension | ( | x | ) | 0 |
Definition at line 34 of file Compiler.h.
#define __has_feature | ( | x | ) | 0 |
Definition at line 30 of file Compiler.h.
#define __msan_allocated_memory | ( | p, | |
size | |||
) |
Definition at line 411 of file Compiler.h.
#define __msan_unpoison | ( | p, | |
size | |||
) |
Definition at line 412 of file Compiler.h.
Referenced by llvm::zlib::compress(), and llvm::zlib::uncompress().
#define LLVM_ADDRESS_SANITIZER_BUILD 0 |
LLVM_ADDRESS_SANITIZER_BUILD Whether LLVM itself is built with AddressSanitizer instrumentation.
Definition at line 421 of file Compiler.h.
#define LLVM_ASSUME_ALIGNED | ( | p, | |
a | |||
) | (p) |
LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment.
Definition at line 357 of file Compiler.h.
Referenced by llvm::support::endian::read(), llvm::support::endian::readAtBitAlignment(), llvm::support::endian::write(), and llvm::support::endian::writeAtBitAlignment().
#define LLVM_ATTRIBUTE_ALWAYS_INLINE |
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always inline" because it is performance sensitive.
GCC 3.4 supported this but is buggy in various cases and produces unimplemented errors, just use it in GCC 4.0 and later.
Definition at line 234 of file Compiler.h.
Referenced by CheckAndImm(), CheckChild2CondCode(), CheckChildInteger(), CheckChildSame(), CheckChildType(), CheckCondCode(), CheckInteger(), CheckNodePredicate(), CheckOpcode(), CheckPatternPredicate(), CheckSame(), CheckType(), CheckValueType(), and llvm::SelectionDAGISel::IsLegalToFold().
#define LLVM_ATTRIBUTE_DEPRECATED | ( | decl, | |
message | |||
) | decl |
Definition at line 304 of file Compiler.h.
Referenced by llvm::EngineBuilder::setMAttrs().
#define LLVM_ATTRIBUTE_NOINLINE |
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inlining".
Definition at line 222 of file Compiler.h.
Referenced by llvm::Expected< T >::operator*().
#define LLVM_ATTRIBUTE_NORETURN |
Definition at line 242 of file Compiler.h.
Referenced by llvm::Error::dynamicClassID(), llvm::coro::Shape::emitDealloc(), llvm::HexagonMCCodeEmitter::EncodeSingleInstruction(), llvm::MCContext::hadError(), llvm::Expected< T >::operator*(), and llvm::ScopedFatalErrorHandler::~ScopedFatalErrorHandler().
#define LLVM_ATTRIBUTE_REINITIALIZES |
Definition at line 166 of file Compiler.h.
#define LLVM_ATTRIBUTE_RETURNS_NOALIAS |
LLVM_ATTRIBUTE_RETURNS_NOALIAS Used to mark a function as returning a pointer that does not alias any other valid pointer.
Definition at line 260 of file Compiler.h.
#define LLVM_ATTRIBUTE_RETURNS_NONNULL |
Definition at line 250 of file Compiler.h.
#define LLVM_ATTRIBUTE_UNUSED |
Definition at line 180 of file Compiler.h.
Referenced by llvm::LiveRangeCalc::addLiveInBlock(), llvm::BuryPointer(), CC_MipsO32_FP64(), DecodeHvxWRRegisterClass(), false::dump_node_container(), llvm::SITargetLowering::getPrefLoopAlignment(), INITIALIZE_PASS(), insertTrivialPHIs(), isUseTriviallyOptimizableToLiveOnEntry(), lowerUINT_TO_FP_vec(), false::operator<<(), and PrintCurStackTrace().
#define LLVM_ATTRIBUTE_USED |
Definition at line 136 of file Compiler.h.
Referenced by llvm::createLowerSwitchPass(), and format_ptr().
#define LLVM_ATTRIBUTE_WEAK |
Definition at line 188 of file Compiler.h.
Referenced by llvm::jit_noop().
#define LLVM_BUILTIN_DEBUGTRAP |
LLVM_BUILTIN_DEBUGTRAP - On compilers which support it, expands to an expression which causes the program to break while running under a debugger.
Definition at line 345 of file Compiler.h.
#define LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0 |
LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands to an expression which states that it is undefined behavior for the compiler to reach this point.
Otherwise is not defined. LLVM_BUILTIN_TRAP - On compilers which support it, expands to an expression which causes the program to exit abnormally.
Definition at line 328 of file Compiler.h.
#define LLVM_DUMP_METHOD LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED |
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
Note that you should also surround dump() functions with if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
so they do always get stripped in release builds.
Definition at line 484 of file Compiler.h.
Referenced by addEdge(), branchMaxOffsets(), CalcNodeSethiUllmanNumber(), llvm::RegBankSelect::EdgeInsertPoint::canMaterialize(), llvm::SDDbgValue::clearIsEmitted(), computeBranchTargetAndInversion(), llvm::createSIWholeQuadModePass(), decreaseSetPressure(), DoInitialMatch(), llvm::Comdat::dump(), llvm::RegisterPressure::dump(), llvm::ILPValue::dump(), llvm::Metadata::dump(), llvm::Type::dump(), llvm::MCAsmMacroParameter::dump(), llvm::MCAsmMacro::dump(), llvm::PressureDiff::dump(), llvm::Value::dump(), llvm::RegPressureTracker::dump(), llvm::Module::dump(), llvm::NamedMDNode::dump(), llvm::dumpRegSetPressure(), llvm::DIEAbbrev::Emit(), llvm::DIELocList::EmitValue(), llvm::LatencyPriorityQueue::empty(), llvm::DbgValueHistoryMap::end(), llvm::NodeSet::end(), llvm::DIE::findAttribute(), getMachineInstr(), getSetupCost(), llvm::object::WasmSymbol::getVisibility(), llvm::DomTreeUpdater::hasPendingDeletedBB(), INITIALIZE_PASS(), llvm::LazyCallGraph::SCC::isAncestorOf(), llvm::slpvectorizer::BoUpSLP::isDeleted(), isFullCopyOf(), isKnownBaseResult(), llvm::DWARFDie::isNULL(), llvm::FullDependence::isSplitable(), llvm::GCNRegPressure::less(), llvm::TargetRegisterInfo::lookThruCopyLike(), mayUsePostIncMode(), operator<<(), llvm::LazyCallGraph::operator=(), llvm::TimePassesHandler::print(), llvm::GVNExpression::Expression::print(), llvm::LiveIntervals::print(), llvm::CallGraphWrapperPass::print(), llvm::ModuleSummaryIndex::print(), llvm::GCNIterativeScheduler::printRegions(), llvm::GCNIterativeScheduler::printSchedResult(), printValues(), llvm::ModuleSummaryIndex::propagateAttributes(), llvm::ScoreboardHazardRecognizer::Reset(), llvm::GVN::run(), llvm::DebugCounter::setCounterValue(), llvm::DIEInteger::SizeOf(), llvm::DIEExpr::SizeOf(), llvm::DIELabel::SizeOf(), llvm::DIEBaseTypeRef::SizeOf(), llvm::DIEDelta::SizeOf(), llvm::DIEString::SizeOf(), llvm::DIEInlineString::SizeOf(), llvm::DIEEntry::SizeOf(), llvm::DIEValue::SizeOf(), llvm::DIELoc::SizeOf(), llvm::DIEBlock::SizeOf(), AllocaSlices::SliceBuilder::SliceBuilder(), and llvm::TimePassesHandler::~TimePassesHandler().
#define LLVM_EXTENSION |
LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics.
Definition at line 290 of file Compiler.h.
Referenced by bindingsErrorHandler(), LLVMContextGetDiagnosticHandler(), LLVMContextSetDiagnosticHandler(), LLVMContextSetYieldCallback(), and LLVMInstallFatalErrorHandler().
#define LLVM_FALLTHROUGH |
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
Definition at line 273 of file Compiler.h.
Referenced by addNegOperand(), llvm::cl::Option::addOccurrence(), llvm::TargetPassConfig::addPassesToHandleExceptions(), addRegsToSet(), llvm::FoldingSetNodeID::AddString(), llvm::ARMAsmBackend::adjustFixupValue(), llvm::canConstantFoldCallTo(), canEvaluateShuffled(), canFoldIntoCSel(), cannotBeOrderedLessThanZeroImpl(), canonicalizeICmpBool(), canonicalizeSaturatedAdd(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), changeFCMPPredToAArch64CC(), changeVectorFPCCToAArch64CC(), llvm::HexagonShuffler::check(), checkBoolTestSetCCCombine(), combineConcatVectorOps(), combineRedundantDWordShuffle(), combineTruncatedArithmetic(), llvm::X86InstrInfo::commuteInstructionImpl(), llvm::detail::IEEEFloat::compareAbsoluteValue(), llvm::Hexagon_MC::completeHVXFeatures(), computeBytesPoppedByCalleeForSRet(), llvm::SelectionDAG::computeKnownBits(), llvm::SystemZTargetLowering::computeKnownBitsForTargetNode(), computeKnownBitsFromOperator(), llvm::GISelKnownBits::computeKnownBitsImpl(), llvm::ComputeMultiple(), llvm::TargetLoweringBase::computeRegisterProperties(), llvm::ConstantFoldBinaryInstruction(), ConvertDoubleToBytes(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::convertToThreeAddress(), countMCSymbolRefExpr(), createCallInst(), createOrdering(), llvm::RuntimeDyldMachOAArch64::decodeAddend(), DecodeCopMemInstruction(), DecodeExclusiveLdStInstruction(), DecodeIITType(), DecodeLOLoop(), DecodeMemMMImm12(), DecodeMSRMask(), DecodePairLdStInstruction(), DecodeThreeAddrSRegInstruction(), DecodeVLDInstruction(), llvm::LegalizerInfo::decreaseToSmallerTypesAndIncreaseToSmallest(), llvm::ARMFrameLowering::determineCalleeSaves(), dumpRelocs(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::EmitAnyX86InstComments(), EmitCMP(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), llvm::ScoreboardHazardRecognizer::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::ARMTargetLowering::emitLeadingFence(), llvm::Thumb1FrameLowering::emitPrologue(), llvm::ARMFrameLowering::emitPrologue(), EmitTest(), EmitVectorComparison(), llvm::RuntimeDyldMachOAArch64::encodeAddend(), EnsureStackAlignment(), llvm::DOT::EscapeString(), llvm::HexagonEvaluator::evaluate(), findmust(), llvm::SparcMCExpr::fixELFSymbolsInTLSFixups(), foldICmpBitCast(), llvm::SystemZInstrInfo::FoldImmediate(), foldMaskedShiftToBEXTR(), llvm::InstCombiner::FoldShiftByConstant(), llvm::HexagonFrameLowering::getAlignaInstr(), getARClassRegisterMask(), llvm::AArch64TTIImpl::getArithmeticInstrCost(), getARMFixupKindMachOInfo(), llvm::ScalarEvolution::getBlockDisposition(), llvm::X86TTIImpl::getCacheAssociativity(), llvm::TargetTransformInfoImplBase::getCacheAssociativity(), llvm::TargetTransformInfoImplBase::getCacheSize(), getComparePred(), getExpandedMinMaxOps(), getFixupKindNumBytes(), llvm::ScoreboardHazardRecognizer::getHazardType(), llvm::sys::detail::getHostCPUNameForARM(), getInputChainForNode(), llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::PPCTTIImpl::getIntImmCost(), getLit64Encoding(), llvm::TGLexer::getLoc(), getLoopPhiForCounter(), llvm::SelectionDAG::getNode(), GetOppositeBranchCondition(), getOptionHelpName(), llvm::R600AsmPrinter::getPassName(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), getRegisterForMxtrC0(), getRsrcReg(), llvm::MemoryDependenceResults::getSimplePointerDependencyFrom(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), getSubOpcode(), getSuccPad(), getUsedNZCV(), llvm::yaml::KeyValueNode::getValue(), getVPTESTMOpc(), llvm::X86::getX86ConditionCode(), getX86SSEConditionCode(), HasConditionalBranch(), HasSecRelSymbolRef(), llvm::yaml::SequenceNode::increment(), llvm::inferLibFuncAttributes(), llvm::TargetLoweringObjectFileELF::Initialize(), initialize(), INITIALIZE_PASS(), InsertSEH(), llvm::PPCInstrInfo::instrHasImmForm(), InTreeUserNeedToExtract(), isAddConstantOp(), isAllocSiteRemovable(), llvm::SITargetLowering::isCanonicalized(), llvm::X86InstrInfo::isCoalescableExtInstr(), isConditionalZeroOrAllOnes(), isDataInvariant(), isDataInvariantLoad(), isDefInSubRange(), llvm::X86TargetLowering::IsDesirableToPromoteOp(), llvm::SystemZTTIImpl::isFoldableLoad(), isFunctionMallocLike(), isKnownPredicateExtendIdiom(), IsKnownPredicateViaMinOrMax(), llvm::ScalarEvolution::isLoopEntryGuardedByCond(), llvm::ScalarEvolution::isLoopInvariantPredicate(), isMatchingOrAlias(), isMulPowOf2(), isObjectSize(), isOptimizeCompareCandidate(), llvm::RecurrenceDescriptor::isRecurrenceInstr(), isVectorReductionOp(), llvm::AArch64TargetLowering::isZExtFree(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::AsmPrinter::lowerConstant(), lowerShuffleAsBlend(), LowerVSETCC(), makeCombineInst(), llvm::AMDGPUSubtarget::makeLIDRangeMetadata(), maskMatters(), llvm::objcarc::TopDownPtrState::MatchWithRelease(), llvm::objcarc::BottomUpPtrState::MatchWithRetain(), mayUseP9Setb(), p_ere_exp(), p_simp_re(), PeepholePPC64ZExtGather(), llvm::SITargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), PrepareCall(), llvm::MIPrinter::print(), printAsmMRegister(), llvm::AsmPrinter::PrintAsmOperand(), printFMA3Comments(), llvm::AMDGPUInstPrinter::printRegOperand(), profitImm(), readModRM(), recoverFramePointer(), ReplaceFrameIndex(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), selectI64Imm(), llvm::LoopVectorizationCostModel::setCostBasedWideningDecision(), shouldEmitUdt(), simplifyBinaryIntrinsic(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(), simplifyICmpWithBinOp(), skipAlignedDPRCS2Spills(), SortNonLocalDepInfoCache(), llvm::object::SymbolicFile::SymbolicFile(), translateX86FSETCC(), UnpackFromArgumentSlot(), llvm::unwrap(), llvm::InlineAsm::Verify(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), llvm::InstCombiner::visitCallInst(), llvm::raw_ostream::write(), and X86ChooseCmpImmediateOpcode().
#define LLVM_GNUC_PREREQ | ( | maj, | |
min, | |||
patch | |||
) | 0 |
LLVM_GNUC_PREREQ Extend the default __GNUC_PREREQ even if glibc's features.h isn't available.
Definition at line 67 of file Compiler.h.
#define LLVM_HAS_CPP_ATTRIBUTE | ( | x | ) | 0 |
Definition at line 51 of file Compiler.h.
#define LLVM_HAS_RVALUE_REFERENCE_THIS 0 |
Does the compiler support ref-qualifiers for *this?
Sadly, this is separate from just rvalue reference support because GCC and MSVC implemented this later than everything else.
Definition at line 102 of file Compiler.h.
#define LLVM_LIBRARY_VISIBILITY |
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library, then the class should be private to the library and not accessible from outside it.
Can also be used to mark variables and functions, making them private to any shared library they are linked into. On PE/COFF targets, library visibility is the default, so this isn't needed.
Definition at line 124 of file Compiler.h.
#define LLVM_LIKELY | ( | EXPR | ) | (EXPR) |
Definition at line 211 of file Compiler.h.
Referenced by llvm::sys::DynamicLibrary::HandleSet::AddLibrary(), llvm::json::OStream::attributeBegin(), llvm::RegBankSelect::EdgeInsertPoint::canMaterialize(), llvm::StringMapImpl::FindKey(), llvm::pdb::GlobalsStream::findRecordsByName(), llvm::json::Value::getAsArray(), llvm::json::Value::getAsBoolean(), llvm::json::Value::getAsInteger(), llvm::json::Value::getAsNull(), llvm::json::Value::getAsNumber(), llvm::json::Value::getAsObject(), llvm::json::Value::getAsString(), llvm::DenseMapBase< DenseMap< const llvm::SCEV *, const llvm::SCEV *, DenseMapInfo< const llvm::SCEV *>, llvm::detail::DenseMapPair< const llvm::SCEV *, const llvm::SCEV *> >, const llvm::SCEV *, const llvm::SCEV *, DenseMapInfo< const llvm::SCEV *>, llvm::detail::DenseMapPair< const llvm::SCEV *, const llvm::SCEV *> >::getTombstoneKey(), hashValueMapping(), llvm::json::isUTF8(), llvm::StringMapImpl::LookupBucketFor(), llvm::BinaryStreamReader::readCString(), and slotForIndex().
#define LLVM_LVALUE_FUNCTION |
Expands to '&' if ref-qualifiers for *this are supported.
This can be used to provide lvalue/rvalue overrides of member functions. The rvalue override should be guarded by LLVM_HAS_RVALUE_REFERENCE_THIS
Definition at line 112 of file Compiler.h.
#define LLVM_MEMORY_SANITIZER_BUILD 0 |
LLVM_MEMORY_SANITIZER_BUILD Whether LLVM itself is built with MemorySanitizer instrumentation.
Definition at line 410 of file Compiler.h.
#define LLVM_MSC_PREREQ | ( | version | ) | 0 |
LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common
version | values to check for are:
|
Definition at line 92 of file Compiler.h.
#define LLVM_NO_SANITIZE | ( | KIND | ) |
LLVM_NO_SANITIZE Disable a particular sanitizer for a function.
Definition at line 474 of file Compiler.h.
#define LLVM_NODISCARD |
LLVM_NODISCARD - Warn if a type or return value is discarded.
Definition at line 153 of file Compiler.h.
Referenced by llvm::AttributeList::addDereferenceableOrNullParamAttr(), llvm::AttributeList::addDereferenceableParamAttr(), llvm::AttributeList::addParamAttribute(), llvm::AttributeList::addParamAttributes(), llvm::StringRef::bytes(), llvm::StringSwitch< T, R >::CasesLower(), llvm::cast(), llvm::cast_or_null(), llvm::SCEVWrapPredicate::clearFlags(), llvm::StringRef::compare(), llvm::StringRef::consume_back(), llvm::StringRef::consumeInteger(), llvm::StringRef::contains(), llvm::StringRef::contains_lower(), llvm::StringRef::copy(), llvm::StringRef::data(), llvm::StringSwitch< T, R >::Default(), llvm::StringRef::drop_back(), llvm::StringRef::drop_front(), llvm::StringRef::drop_while(), llvm::dyn_cast(), llvm::dyn_cast_or_null(), llvm::StringRef::empty(), llvm::StringRef::endswith(), llvm::StringRef::equals(), llvm::StringRef::equals_lower(), llvm::StringRef::find(), llvm::StringRef::find_first_of(), llvm::StringRef::find_if(), llvm::StringRef::find_if_not(), llvm::StringRef::find_last_of(), llvm::StringRef::front(), llvm::MachineFunction::getFrameInstructions(), llvm::joinErrors(), llvm::StringRef::ltrim(), llvm::SCEVWrapPredicate::maskFlags(), llvm::StringRef::operator std::string(), llvm::AttributeSet::operator!=(), llvm::operator+=(), llvm::AttributeList::removeParamAttributes(), llvm::StringRef::rfind(), llvm::StringRef::rsplit(), llvm::StringRef::rtrim(), llvm::SCEVWrapPredicate::setFlags(), llvm::ScalarEvolution::setFlags(), llvm::MachineFunction::shouldSplitStack(), llvm::StringRef::size(), llvm::StringRef::split(), llvm::StringRef::startswith(), llvm::StringRef::str(), llvm::StringRef::take_back(), llvm::StringRef::take_front(), llvm::StringRef::take_until(), llvm::StringRef::take_while(), llvm::StringRef::trim(), and llvm::detail::scope_exit< Callable >::~scope_exit().
#define LLVM_PACKED | ( | d | ) | d __attribute__((packed)) |
LLVM_PACKED Used to specify a packed structure.
LLVM_PACKED( struct A { int i; int j; int k; long long l; });
LLVM_PACKED_START struct B { int i; int j; int k; long long l; }; LLVM_PACKED_END
Definition at line 383 of file Compiler.h.
#define LLVM_PACKED_END _Pragma("pack(pop)") |
Definition at line 385 of file Compiler.h.
Referenced by llvm::coverage::CovMapHeader::getVersion().
#define LLVM_PACKED_START _Pragma("pack(push, 1)") |
Definition at line 384 of file Compiler.h.
#define LLVM_PREFETCH | ( | addr, | |
rw, | |||
locality | |||
) |
Definition at line 130 of file Compiler.h.
#define LLVM_PRETTY_FUNCTION __func__ |
LLVM_PRETTY_FUNCTION Gets a user-friendly looking function signature for the current scope using the best available method on each platform.
The exact format of the resulting string is implementation specific and non-portable, so this should only be used, for example, for logging or diagnostics.
Definition at line 499 of file Compiler.h.
#define LLVM_PTR_SIZE sizeof(void *) |
LLVM_PTR_SIZE A constant integer equivalent to the value of sizeof(void*).
Generally used in combination with alignas or when doing computation in the preprocessor.
Definition at line 401 of file Compiler.h.
#define LLVM_READNONE |
Definition at line 197 of file Compiler.h.
Referenced by llvm::AMDGPUTargetLowering::AMDGPUTargetLowering(), llvm::AMDGPU::Waitcnt::combined(), computeDataLayout(), encodeCnt(), llvm::AMDGPU::getOperandSize(), and llvm::AMDGPU::isKernel().
#define LLVM_READONLY |
Definition at line 204 of file Compiler.h.
Referenced by llvm::AMDGPU::Waitcnt::combined(), fnegFoldsIntoOp(), llvm::Use::get(), llvm::Instruction::getDebugLoc(), llvm::BasicBlock::getModule(), llvm::SIInstrInfo::getOpSize(), llvm::SIInstrInfo::getRegisterInfo(), llvm::getRegSubRegPair(), llvm::Type::isSized(), llvm::maxnum(), llvm::minimum(), llvm::minnum(), llvm::neg(), llvm::EVT::compareRawBits::operator()(), and opMustUseVOP3Encoding().
#define LLVM_REQUIRE_CONSTANT_INITIALIZATION |
LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized.
Definition at line 282 of file Compiler.h.
Referenced by llvm::cl::Option::reset().
#define LLVM_THREAD_LOCAL __thread |
LLVM_THREAD_LOCAL A thread-local storage specifier which can be used with globals, extern globals, and static globals.
This is essentially an extremely restricted analog to C++11's thread_local support, and uses that when available. However, it falls back on platform-specific or vendor-provided extensions when necessary. These extensions don't support many of the C++11 thread_local's features. You should only use this for PODs that you can statically initialize to some constant value. In almost all circumstances this is most appropriate for use with a pointer, integer, or small aggregation of pointers and integers.
Definition at line 523 of file Compiler.h.
#define LLVM_THREAD_SANITIZER_BUILD 0 |
LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation.
Definition at line 431 of file Compiler.h.
#define LLVM_UNLIKELY | ( | EXPR | ) | (EXPR) |
Definition at line 212 of file Compiler.h.
Referenced by llvm::Error::dynamicClassID(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::emplace_back(), llvm::TargetFrameLowering::getStackAlignmentSkew(), llvm::DenseMapBase< DenseMap< const llvm::SCEV *, const llvm::SCEV *, DenseMapInfo< const llvm::SCEV *>, llvm::detail::DenseMapPair< const llvm::SCEV *, const llvm::SCEV *> >, const llvm::SCEV *, const llvm::SCEV *, DenseMapInfo< const llvm::SCEV *>, llvm::detail::DenseMapPair< const llvm::SCEV *, const llvm::SCEV *> >::getTombstoneKey(), gsiRecordLess(), handleMethodOverloadList(), handleOneMethod(), INITIALIZE_PASS(), llvm::codeview::GlobalTypeTableBuilder::insertRecordAs(), llvm::isASCII(), llvm::CFLAndersAAResult::FunctionInfo::mayAlias(), llvm::json::ObjectKey::ObjectKey(), llvm::Expected< T >::operator*(), llvm::BitVector::operator<<=(), llvm::BitVector::operator>>=(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::SmallVectorTemplateBase< T, true >::push_back(), llvm::StringMapImpl::RehashTable(), slotForIndex(), llvm::LocationSize::upperBound(), llvm::json::Value::Value(), and llvm::raw_ostream::write().
#define TsanHappensAfter | ( | cv | ) |
Definition at line 464 of file Compiler.h.
#define TsanHappensBefore | ( | cv | ) |
Definition at line 463 of file Compiler.h.
Referenced by llvm::call_once().
#define TsanIgnoreWritesBegin | ( | ) |
Definition at line 465 of file Compiler.h.
Referenced by llvm::call_once().
#define TsanIgnoreWritesEnd | ( | ) |
Definition at line 466 of file Compiler.h.