Return the total number of values used in. Drops flags that may cause this instruction to evaluate to poison despite having non-poison inputs. getArgOperand/setArgOperand - Return/set the i-th call argument. Definition at line 1396 of file InstrTypes.h. Determine whether the no-infs flag is set. Definition at line 173 of file Instruction.h. Definition at line 1478 of file InstrTypes.h. Sets the function called, including updating the function type. adds the attribute to the list of attributes. If the instruction has "branch_weights" MD_prof metadata and the. Definition at line 1872 of file InstrTypes.h. These are the top rated real world C++ (Cpp) examples of CallInst extracted from open source projects. Definition at line 1521 of file InstrTypes.h. References Attrs, and llvm::AttributeList::getParamElementType(). Remove every uses that can safely be removed. Definition at line 1605 of file InstrTypes.h. Definition at line 1476 of file Metadata.cpp. Referenced by TryToMergeLandingPad(), and llvm::InstCombinerImpl::visitFenceInst(). The operand bundle uses are part of the Use& vector, just like normal uses. Referenced by AddAliasScopeMetadata(), annotateDereferenceableBytes(), annotateNonNullNoUndefBasedOnAccess(), computeBytesPoppedByCalleeForSRet(), dataOperandHasImpliedAttr(), llvm::getGuaranteedWellDefinedOps(), hasInAllocaArgument(), hasStructRetAttr(), isByValArgument(), isCondRelevantToAnyCallArgument(), isInAllocaArgument(), llvm::isLegalToPromote(), isPassingUndefUB(), isPassPointeeByValueArgument(), and processCallSite(). Definition at line 23 of file Instruction.cpp. Referenced by llvm::InsertProfilingInitCall(), llvm::MemIntrinsic::setAlignment(), llvm::MemIntrinsic::setDest(), llvm::MemIntrinsic::setLength(), llvm::MemTransferInst::setSource(), llvm::MemSetInst::setValue(), llvm::MemIntrinsic::setVolatile(), and llvm::InstCombiner::visitCallInst(). Definition at line 1553 of file InstrTypes.h. The regular Use& vector for the User starts at U0. Definition at line 69 of file Instruction.cpp. Definition at line 253 of file Instruction.h. References assert(), llvm::MCID::Call, llvm::extractProfTotalWeight(), getMetadata(), getOpcode(), and llvm::MCID::Select. Return true if this is an arithmetic shift right. All call-like instructions are required to use a common operand layout: This allows this base class to easily access the called function and the start of the arguments without knowing how many other operands a particular subclass requires. Generate the IR for a call to the builtin free function. Set or clear the allow-reciprocal flag on this instruction, which must be an operator which supports this flag. What is the difference between #include and #include "filename"? Definition at line 1310 of file InstrTypes.h. Referenced by addVariantDeclaration(), llvm::changeToInvokeAndSplitBasicBlock(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CallBrInst::Create(), llvm::createCallMatchingInvoke(), getCalledFunction(), llvm::objcarc::hasAttachedCallOpBundle(), llvm::InlineFunction(), llvm::TargetLibraryInfoImpl::isCallingConvCCompatible(), llvm::HexagonTargetLowering::LowerCall(), llvm::FastISel::lowerCall(), llvm::CallLowering::lowerCall(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::FastISel::lowerCallTo(), lowerFunnelShifts(), lowerUMulWithOverflow(), promoteArguments(), llvm::promoteCall(), shouldBeMustTail(), and llvm::InstCombinerImpl::visitCallInst(). CreateMalloc - Generate the IR for a call to malloc: 1. References arg_size(), assert(), getAttributes(), and llvm::AttributeList::getParamAttr(). Determine whether the allow-reassociation flag is set. Return the module owning the function this instruction belongs to or nullptr it the function does not have a module. Referenced by llvm::CallLowering::lowerCall(). Referenced by llvm::CodeExtractor::findAllocas(), isIntegerWideningViableForSlice(), isUsedByLifetimeMarker(), isVectorPromotionViableForSlice(), onlyUsedByLifetimeMarkersOrDroppableInstsHelper(), and llvm::AMDGPUSimplifyLibCallsPass::run(). Allocate the array of Uses, followed by a pointer (with bottom bit set) to the, Appends all metadata attached to this value to. Making statements based on opinion; back them up with references or personal experience. Referenced by andIRFlags(), llvm::InstCombinerImpl::commonIDivTransforms(), llvm::InstCombinerImpl::commonShiftTransforms(), ConvertShiftToMul(), copyIRFlags(), llvm::BinaryOperator::CreateNUW(), dropPoisonGeneratingFlags(), foldShiftedShift(), llvm::ConstantExpr::getAsInstruction(), llvm::SCEVExpander::hoistIVInc(), llvm::InstModificationIRStrategy::mutate(), NegateValue(), llvm::InstCombinerImpl::reassociateShiftAmtsOfTwoSameDirectionShifts(), and llvm::InstCombinerImpl::visitMul(). Return a pointer to the previous non-debug instruction in the same basic block as 'this', or nullptr if no such instruction exists. Definition at line 622 of file Instruction.cpp. Definition at line 240 of file Instruction.cpp. I thought number 2 was the answer, but started to get confused looking at some codes. Methods for support type inquiry through isa, cast, and dyn_cast: Definition at line 752 of file Instruction.h. Return the debug location for this node as a. Definition at line 920 of file Instructions.h. Determine if the OpCode is one of the CastInst instructions. Definition at line 1474 of file Instructions.h. What does CallInst::Create() return in LLVM? Referenced by llvm::InstCombiner::visitCallInst(). Referenced by data_operands_begin(), data_operands_empty(), data_operands_size(), data_ops(), getDataOperandNo(), and isDataOperand(). Definition at line 77 of file Instruction.cpp. Referenced by ConstructNewCallInst(), llvm::UpgradeIntrinsicCall(), and WriteInstruction(). Definition at line 819 of file DebugInfo.cpp. Change all uses of this to point to a new, Change non-metadata uses of this to point to a new, Go through the uses list for this definition and make each use point to "V" if the callback ShouldReplace returns true for the given. Definition at line 72 of file Instruction.h. Definition at line 210 of file Instruction.h. Referenced by getNumSubclassExtraOperands(). Definition at line 1851 of file InstrTypes.h. References assert(), bundle_op_info_begin(), getNumOperandBundles(), and operandBundleFromBundleOpInfo(). Definition at line 179 of file Instructions.cpp. Return true if there is a value handle associated with this value. Definition at line 420 of file Instructions.cpp. Returns the intrinsic ID of the intrinsic called or Intrinsic::not_intrinsic if the called function is not an intrinsic, or if this is an indirect call. Determine whether the approximate-math-functions flag is set. Strip off pointer casts, all-zero GEPs, address space casts, and aliases. Definition at line 145 of file Instruction.cpp. Return the operand bundle at a specific index. Definition at line 1596 of file Instructions.h. Return the list of operand bundles attached to this instruction as a vector of OperandBundleDefs. Referenced by llvm::LanaiInstrInfo::analyzeBranch(), buildClonedLoopBlocks(), BuildSubAggregate(), llvm::changeToCall(), llvm::CloneAndPruneIntoFromInst(), CloneLoopBlocks(), ConnectEpilog(), ConnectProlog(), GeneratedRTChecks::Create(), llvm::OpenMPIRBuilder::createAtomicCompare(), llvm::OpenMPIRBuilder::createCopyinClauseBlocks(), createMemMoveLoop(), createMemSetLoop(), llvm::OpenMPIRBuilder::createParallel(), llvm::OpenMPIRBuilder::createReductions(), llvm::OpenMPIRBuilder::createTask(), createTblForTrunc(), createTblShuffleForZExt(), llvm::deleteDeadLoop(), despeculateCountZeros(), DoFlattenLoopPair(), doPromotion(), dropTypeTests(), EliminateDuplicatePHINodesNaiveImpl(), GeneratedRTChecks::emitSCEVChecks(), llvm::objcarc::BundledRetainClaimRVs::eraseInst(), llvm::objcarc::EraseInstruction(), EraseTerminatorAndDCECond(), llvm::expandAtomicRMWToCmpXchg(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), findPHIToPartitionLoops(), llvm::FoldReturnIntoUncondBranch(), FoldTwoEntryPHINode(), getStrlenWithNull(), llvm::SSAUpdater::GetValueInMiddleOfBlock(), llvm::InlineFunction(), inlineRetainOrClaimRVCalls(), insertBoundsCheck(), insertSpills(), llvm::lowerAtomicCmpXchgInst(), llvm::lowerAtomicRMWInst(), llvm::LowerDbgDeclare(), lowerExpectIntrinsic(), LowerFenceInst(), lowerIntrinsic(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::IntrinsicLowering::LowerToByteSwap(), llvm::MergeBasicBlockIntoOnlyPred(), mergeCleanupPad(), mergeConditionalStoreToAddress(), mergeInlinedArrayAllocas(), llvm::InstDeleterIRStrategy::mutate(), narrowSDivOrSRem(), optimizeDivRem(), OptimizeEmptyGlobalCXXDtors(), OptimizeExtractBits(), OptimizeGlobalAddressOfAllocation(), llvm::PHITransAddr::PHITranslateWithInsertion(), processAbsIntrinsic(), processAnd(), processAShr(), llvm::JumpThreadingPass::processBlock(), llvm::JumpThreadingPass::processBranchOnXOR(), processMinMaxIntrinsic(), processOverflowIntrinsic(), processSDiv(), processSExt(), processSRem(), processUDivOrURem(), promoteSingleBlockAlloca(), llvm::OutlinableRegion::reattachCandidate(), ReduceLoopStrength(), llvm::removeAllNonTerminatorAndEHPadInstructions(), llvm::LanaiInstrInfo::removeBranch(), llvm::PHINode::removeIncomingValue(), removeIntrinsicUsers(), removeNonFeasibleEdges(), RemovePreallocated(), removeUndefIntroducingPredecessor(), llvm::removeUnwindEdge(), llvm::AMDGPULibCalls::replaceCall(), replaceCalledFunction(), replaceConditionalBranchesOnConstant(), replaceFrameSizeAndAlignment(), replaceOneDbgValueForAlloca(), replaceOperation(), replacePrepare(), replaceSignedInst(), replaceSubOverflowUses(), llvm::rewriteLoopExitValues(), rewritePHIs(), rewriteSingleStoreAlloca(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), simplifyOneLoop(), llvm::JumpThreadingPass::simplifyPartiallyRedundantLoad(), simplifySuspendPoint(), sinkAndCmp0Expression(), SinkCast(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitBeforeCatchSwitch(), splitCallSite(), SplitLandingPadPredecessorsImpl(), llvm::splitLoopBound(), stripDebugDeclareImpl(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), TryToMergeLandingPad(), TryToShrinkGlobalToBoolean(), turnToExplicitForm(), llvm::UnrollAndJamLoop(), llvm::UnrollRuntimeLoopRemainder(), unswitchTrivialBranch(), unswitchTrivialSwitch(), llvm::UpgradeARCRuntime(), llvm::versionCallSite(), llvm::LoopVersioning::versionLoop(), and llvm::ObjectSizeOffsetEvaluator::visitPHINode(). Definition at line 1464 of file InstrTypes.h. Generated on Fri Jul 27 2012 14:58:43 for LLVM by Definition at line 1024 of file Instructions.h. Return the specified successor. Translate PHI node to its predecessor from the given basic block. Is the function attribute S disallowed by some operand bundle on this operand bundle user? Removes the attributes from the return value. Referenced by cannotDuplicate(), cannotMerge(), llvm::CallInst::canReturnTwice(), determinePointerAccessAttrs(), doesNoCfCheck(), doesNotAccessMemory(), doesNotReturn(), doesNotThrow(), InstrBreaksNoFree(), InstrBreaksNoSync(), instructionDoesNotReturn(), isConvergent(), isNoInline(), isStrictFP(), onlyAccessesArgMemory(), onlyAccessesInaccessibleMemOrArgMem(), onlyAccessesInaccessibleMemory(), and llvm::SITargetLowering::passSpecialInputs(). Drop all unknown metadata except for debug locations. Strip off pointer casts, all-zero GEPs, single-argument phi nodes and invariant group info. References F, getCalledOperand(), and getFunctionType(). Definition at line 324 of file Instruction.cpp. Definition at line 787 of file Instruction.h. Definition at line 1005 of file Instructions.h. References getIntrinsicID(), hasOperandBundlesOtherThan(), llvm::LLVMContext::OB_deopt, llvm::LLVMContext::OB_funclet, llvm::LLVMContext::OB_kcfi, and llvm::LLVMContext::OB_ptrauth. llvm ! Extract the alignment for a call or parameter (0=unknown). Determine if the call does not access or only reads memory. Sets the AA metadata on this instruction from the AAMDNodes structure. Return the function this instruction belongs to. Clear the optional flags contained in this value. Definition at line 560 of file Instruction.cpp. Call malloc with that argument. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Referenced by llvm::getGuaranteedWellDefinedOps(), llvm::AbstractCallSite::isDirectCall(), llvm::AbstractCallSite::isIndirectCall(), llvm::CallLowering::lowerCall(), runCGProfilePass(), llvm::IRSimilarity::IRInstructionData::setCalleeName(), and llvm::IRSimilarity::IRInstructionMapper::InstructionClassification::visitCallInst(). Return true if there is exactly one use of this value. Given a value use iterator, return the arg operand number corresponding to it. Definition at line 575 of file Instruction.h. References llvm::Value::getAllMetadata(). Definition at line 1186 of file InstrTypes.h. isInlineAsm - Check if this call is an inline asm statement. Note: OperandBundeUses and OperandBundleDefs are non-trivially different representations of operand bundles (see documentation above). Referenced by llvm::InstCombinerImpl::freezeOtherUses(), and NegateValue(). References arg_size(), assert(), Attrs, llvm::Value::getContext(), and llvm::AttributeList::removeParamAttribute(). References llvm::CallBase::getNumOperandBundles(), llvm::User::getNumOperands(), and llvm::CallBase::hasOperandBundles(). References llvm::FAdd, llvm::FMul, and getOpcode(). adds the dereferenceable attribute to the list of attributes. Tests if this call site must be tail call optimized. Return the total number operands (not operand bundles) used by every operand bundle in this OperandBundleUser. This is not the directly following instruction in a number of cases, e.g. Definition at line 1720 of file InstrTypes.h. Return true if this operator has flags which may cause this instruction to evaluate to poison despite having non-poison inputs. Definition at line 351 of file Instruction.h. References arg_size(), assert(), Attrs, F, getCalledFunction(), hasClobberingOperandBundles(), llvm::AttributeList::hasParamAttr(), and hasReadingOperandBundles(). Referenced by BreakUpSubtract(), buildFrameDebugInfo(), llvm::changeToInvokeAndSplitBasicBlock(), CloneInstructionsIntoPredecessorBlockAndUpdateSSAUses(), computeCallStackHash(), ConvertShiftToMul(), copyMetadata(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CallBrInst::Create(), createAndInstr(), llvm::createCallMatchingInvoke(), llvm::VPRecipeBuilder::createEdgeMask(), llvm::InnerLoopVectorizer::createInductionResumeValue(), despeculateCountZeros(), llvm::VPWidenIntOrFpInductionRecipe::execute(), llvm::extractProbeFromDiscriminator(), fixupDebugInfoPostExtraction(), fixupLineNumbers(), FoldCondBranchOnValueKnownInPredecessorImpl(), llvm::ReplayInlineAdvisor::getAdviceImpl(), llvm::SampleContextTracker::getCalleeContextSamplesFor(), llvm::SelectionDAGBuilder::getCurDebugLoc(), getDebugValueLoc(), llvm::VNCoercion::getLoadValueForLoad(), getOrCreateDebugLoc(), llvm::hoistAllInstructionsInto(), llvm::InlineFunction(), llvm::InstCombinerImpl::InsertNewInstWith(), llvm::InstCombiner::InsertNewInstWith(), LowerNegateToMultiply(), llvm::InstCombinerImpl::mergeStoreIntoSuccessor(), operandWithNewAddressSpaceOrCreateUndef(), OptimizeExtractBits(), llvm::InstCombinerImpl::PHIArgMergedDebugLoc(), processAShr(), processDbgDeclares(), processSDiv(), processSExt(), processSRem(), llvm::SampleContextTracker::promoteMergeContextSamplesTree(), llvm::removeUnwindEdge(), llvm::SCEVExpander::replaceCongruentIVs(), replaceOneDbgValueForAlloca(), llvm::IRTranslator::runOnMachineFunction(), llvm::InnerLoopVectorizer::scalarizeInstruction(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), llvm::FastISel::selectOperator(), llvm::VPTransformState::setDebugLocFromInst(), llvm::setProbeDistributionFactor(), llvm::JumpThreadingPass::simplifyPartiallyRedundantLoad(), sinkAndCmp0Expression(), SinkCast(), sinkLastInstruction(), SinkShiftAndTruncate(), llvm::SplitBlockAndInsertIfThenElse(), SplitBlockAndInsertIfThenImpl(), splitCallSite(), llvm::SplitKnownCriticalEdge(), SplitLandingPadPredecessorsImpl(), TryToShrinkGlobalToBoolean(), llvm::JumpThreadingPass::unfoldSelectInstr(), updateForIncomingValueLocation(), llvm::sroa::AllocaSliceRewriter::visit(), and llvm::InstCombinerImpl::visitLoadInst(). Definition at line 173 of file Instruction.cpp. Extract the elementtype type for a parameter. And how is it going to affect C++ programming? Definition at line 1664 of file Instructions.h. Determine whether the return value has the given attribute. Definition at line 1065 of file Instructions.h. This function determines if the specified instruction executes the same operation as the current one. When checking for operation equivalence (using isSameOperationAs) it is sometimes useful to ignore certain attributes. This may be because it has the nonnull attribute, or because at least one byte is dereferenceable and the pointer is in addrspace(0). Referenced by bundleOperandHasAttr(), getBundleOpInfoForOperand(), llvm::getKnowledgeFromOperandInAssume(), and getOperandBundleForOperand(). Definition at line 1006 of file Instructions.h. Definition at line 1280 of file InstrTypes.h. References llvm::BasicBlock::getInstList(), llvm::ilist_node_impl< ilist_detail::compute_node_options< Instruction, Options >::type >::getIterator(), and getParent(). Get the attribute of a given kind at a position. Logical 'and' of any supported wrapping, exact, and fast-math flags of V and this instruction. Change all uses of this to point to a new, Change non-metadata uses of this to point to a new, Go through the uses list for this definition and make each use point to "V" if the callback ShouldReplace returns true for the given. Definition at line 1402 of file Metadata.cpp. Definition at line 1978 of file InstrTypes.h. Definition at line 1073 of file Instructions.h. Detailed Description. Determine whether all fast-math-flags are set. Definition at line 1623 of file InstrTypes.h. Change all uses of this to point to a new, Change non-metadata uses of this to point to a new, Go through the uses list for this definition and make each use point to "V" if the callback ShouldReplace returns true for the given. Support for debugging, callable in GDB: V->. Frequently Used Methods. Definition at line 1051 of file Instructions.h. Return true if there is exactly one user of this value. Definition at line 2177 of file InstrTypes.h. Get the attribute of a given kind at a position. CreateMalloc - Generate the IR for a call to malloc: Definition at line 801 of file Instructions.cpp. Examples Referenced by markTails(), llvm::HexagonTargetLowering::mayBeEmittedAsTailCall(), llvm::SITargetLowering::mayBeEmittedAsTailCall(), llvm::RISCVTargetLowering::mayBeEmittedAsTailCall(), and llvm::SystemZTargetLowering::mayBeEmittedAsTailCall(). Strip off pointer casts, all-zero GEPs, single-argument phi nodes and invariant group info. Determine whether the no unsigned wrap flag is set. Referenced by LLVMBuildArrayMalloc(), and LLVMBuildMalloc(). References Attrs, F, llvm::AttributeList::FirstArgIndex, getArgOperand(), getCalledFunction(), llvm::AttributeList::hasAttrSomewhere(), and Index. References bundle_op_info_begin(), bundle_op_info_end(), llvm::lltok::equal, getNumOperandBundles(), and Other. Return true if the instruction may have side effects. Definition at line 1807 of file InstrTypes.h. Referenced by llvm::CastConstantExpr::classof(), llvm::ConstantFoldCastOperand(), llvm::ConstantExprKeyType::create(), foldConstantCastPair(), llvm::InstCombinerImpl::foldSelectOpOp(), llvm::ConstantExpr::getCast(), isCast(), and llvm::ConstantExpr::isCast().
Metallica Easy Tabs Nothing Else Matters,
Socio Cultural Aspects Of Education,
Minehut Console Commands Not Working,
Php Loop Through Multidimensional Array,
Talleres De Remedios Livescore,
Rust Crossbow Vs Compound Bow,
Cdl License South Carolina,
llvm callinst::create