search for: getsubclassdatafromvalue

Displaying 1 result from an estimated 1 matches for "getsubclassdatafromvalue".

2010 Apr 24
2
[LLVMdev] Proposal for Adding MetaData to a BasicBlock
...instruction has metadata attached to it or not. HasMetadataBit = 1 << 15 }; This enumeration is then utilized by hasMetadata() which is inlined in class Instruction: // hasMetadata() - Return true if this instruction has any metadata attached to it. bool hasMetadata() const { return (getSubclassDataFromValue() & HasMetadataBit) != 0; } >> First Question: Since I do not expect to require any subclasses of BasicBlock, should I just implement in BasicBlock the following: bool hasMetadata() const { return (HasMetadataBit) != 0; } >> Second Question: Additionally, after studying the w...