From c191035f421b5dc69873cba8885fee41e984cc5d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 7 Jul 2021 22:29:43 +0200 Subject: [IR] Add elementtype attribute This implements the elementtype attribute specified in D105407. It just adds the attribute and the specified verifier rules, but doesn't yet make use of it anywhere. Differential Revision: https://reviews.llvm.org/D106008 --- llvm/lib/Transforms/Utils/CodeExtractor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp') diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index 3d631651fa7d..9edc52b53550 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp @@ -902,6 +902,7 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs, case Attribute::Convergent: case Attribute::Dereferenceable: case Attribute::DereferenceableOrNull: + case Attribute::ElementType: case Attribute::InAlloca: case Attribute::InReg: case Attribute::InaccessibleMemOnly: -- cgit v1.2.3