Look up a constant by attribute without adding it
| 482 | |
| 483 | // Look up a constant by attribute without adding it |
| 484 | LogicalResult getConstantIndex(Attribute attr, uint64_t &index) const { |
| 485 | auto it = constantsMap.find(attr); |
| 486 | if (it != constantsMap.end()) { |
| 487 | index = std::distance(constantsMap.begin(), it); |
| 488 | return success(); |
| 489 | } |
| 490 | return failure(); |
| 491 | } |
| 492 | |
| 493 | // Provide access to the constant map |
| 494 | const llvm::MapVector<Attribute, SmallVector<char>> &getConstantsMap() const { |
nothing calls this directly
no outgoing calls
no test coverage detected