This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -cr Python-2.7.6/Include/opcode.h Python-2.7.6-patched/Include/opcode.h | |
*** Python-2.7.6/Include/opcode.h 2013-11-10 08:36:39.000000000 +0100 | |
--- Python-2.7.6-patched/Include/opcode.h 2014-05-16 16:14:42.885966107 +0200 | |
*************** | |
*** 149,154 **** | |
--- 149,155 ---- | |
#define SET_ADD 146 | |
#define MAP_ADD 147 | |
+ #define LOAD_FAST_ZERO_LOAD_CONST 148 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(GlobalVariable* GA = M.getGlobalVariable("llvm.global.annotations")) { | |
// the first operand holds the metadata | |
for (Value *AOp : GA->operands()) { | |
// all metadata are stored in an array of struct of metadata | |
if (ConstantArray *CA = dyn_cast<ConstantArray>(AOp)) { | |
// so iterate over the operands | |
for (Value *CAOp : CA->operands()) { | |
// get the struct, which holds a pointer to the annotated function | |
// as first field, and the annotation as second field | |
if (ConstantStruct *CS = dyn_cast<ConstantStruct>(CAOp)) { |
OlderNewer