In LLVM, I'd like to test whether the trip count obtained by LoopInfo
pass is an immediate
number. For example, the following loop
for(i=0; i<10; i++) { ... }
has a trip count of 10, and it's an immediate number. The member function getTripCount()
of Loop can be called to get a Value representing the trip count. How can I decide this value is an immediate number or not?