ΒΆllvm::Value* FindInsertedValue(
llvm::Value* V,
ArrayRef<unsigned int> idx_range,
llvm::Instruction* InsertBefore = nullptr)
llvm::Value* FindInsertedValue(
llvm::Value* V,
ArrayRef<unsigned int> idx_range,
llvm::Instruction* InsertBefore = nullptr)
Description
Given an aggregate and an sequence of indices, see if the scalar value indexed is already around as a register, for example if it were inserted directly into the aggregate. If InsertBefore is not null, this function will duplicate (modified) insertvalues when a part of a nested struct is extracted.
Declared at: llvm/include/llvm/Analysis/ValueTracking.h:241
Parameters
- llvm::Value* V
- ArrayRef<unsigned int> idx_range
- llvm::Instruction* InsertBefore = nullptr