ΒΆllvm::MDNode* makePostTransformationMetadata(
llvm::LLVMContext& Context,
llvm::MDNode* OrigLoopID,
llvm::ArrayRef<llvm::StringRef>
RemovePrefixes,
llvm::ArrayRef<llvm::MDNode*> AddAttrs)
llvm::MDNode* makePostTransformationMetadata(
llvm::LLVMContext& Context,
llvm::MDNode* OrigLoopID,
llvm::ArrayRef<llvm::StringRef>
RemovePrefixes,
llvm::ArrayRef<llvm::MDNode*> AddAttrs)
Description
Create a new LoopID after the loop has been transformed. This can be used when no follow-up loop attributes are defined (llvm::makeFollowupLoopID returning None) to stop transformations to be applied again.
Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1281
Parameters
- llvm::LLVMContext& Context
- The LLVMContext in which to create the new LoopID.
- llvm::MDNode* OrigLoopID
- The original LoopID; can be nullptr if the original loop has no LoopID.
- llvm::ArrayRef<llvm::StringRef> RemovePrefixes
- Remove all loop attributes that have these prefixes. Use to remove metadata of the transformation that has been applied.
- llvm::ArrayRef<llvm::MDNode*> AddAttrs
- Add these loop attributes to the new LoopID.
Returns
A new LoopID that can be applied using Loop::setLoopID().