summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-07-07 22:29:43 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-07-15 18:04:26 +0200
commitc191035f421b5dc69873cba8885fee41e984cc5d (patch)
treea005ea28a289f84bc40a272c5001a8cfae98e4d5 /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent1fd23a065bf729836dd52ef1ad3c84c449735a56 (diff)
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CodeExtractor.cpp1
1 files changed, 1 insertions, 0 deletions
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: