diff options
author | Adam Nemet <anemet@apple.com> | 2016-04-22 19:10:05 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-04-22 19:10:05 +0000 |
commit | fe3def7c2a301ea414e0e7adf54e8216064268a0 (patch) | |
tree | 26be2ae07711201ca926a3a04740d66741070f57 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 6493bc2b97e19ed5920b7d03cc677deb38658dac (diff) | |
download | llvm-fe3def7c2a301ea414e0e7adf54e8216064268a0.zip llvm-fe3def7c2a301ea414e0e7adf54e8216064268a0.tar.gz llvm-fe3def7c2a301ea414e0e7adf54e8216064268a0.tar.bz2 |
[LoopUtils] Extend findStringMetadataForLoop to return the value for metadata
E.g. for:
!1 = {"llvm.distribute", i32 1}
it now returns the MDOperand for 1.
I will use this in LoopDistribution to check the value of the metadata.
Note that the change is backward-compatible with its current use in
LoopVersioningLICM. An Optional implicitly converts to a bool depending
whether it contains a value or not.
llvm-svn: 267190
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions