[llvm] [DirectX] remove string function attribute DXIL not allowed (PR #90778)

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 13:11:34 PDT 2024


================
@@ -40,6 +40,15 @@ void ValidatorVersionMD::update(VersionTuple ValidatorVer) {
 
 bool ValidatorVersionMD::isEmpty() { return Entry->getNumOperands() == 0; }
 
+VersionTuple ValidatorVersionMD::getAsVersionTuple() {
+  if (isEmpty())
+    return VersionTuple(1, 0);
+  auto *ValVerMD = cast<MDNode>(Entry->getOperand(0));
----------------
python3kgae wrote:

Yes. Entry is always intialized with getOrInsertNamedMetadata.

https://github.com/llvm/llvm-project/pull/90778


More information about the llvm-commits mailing list