9#ifndef LLVM_ASMPARSER_NUMBEREDVALUES_H
10#define LLVM_ASMPARSER_NUMBEREDVALUES_H
20 unsigned NextUnusedID = 0;
23 unsigned getNext()
const {
return NextUnusedID; }
24 T get(
unsigned ID)
const {
return Vals.lookup(
ID); }
26 assert(
ID >= NextUnusedID &&
"Invalid value ID");
28 NextUnusedID =
ID + 1;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the DenseMap class.
Mapping from value ID to value, which also remembers what the next unused ID is.
void add(unsigned ID, T V)
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
This is an optimization pass for GlobalISel generic memory operations.