mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
support current llvm12 changes
This commit is contained in:
@ -10,6 +10,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
|
|||||||
|
|
||||||
|
|
||||||
### Version ++2.67d (develop)
|
### Version ++2.67d (develop)
|
||||||
|
- Further llvm 12 support (fast moving target like afl++ :-) )
|
||||||
- Fix for auto dictionary not to throw out a -x dictionary
|
- Fix for auto dictionary not to throw out a -x dictionary
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,10 +181,16 @@ struct InsTrim : public ModulePass {
|
|||||||
|
|
||||||
#ifdef AFL_HAVE_VECTOR_INTRINSICS
|
#ifdef AFL_HAVE_VECTOR_INTRINSICS
|
||||||
// IntegerType *Int64Ty = IntegerType::getInt64Ty(C);
|
// IntegerType *Int64Ty = IntegerType::getInt64Ty(C);
|
||||||
uint64_t PrevLocVecSize = PowerOf2Ceil(PrevLocSize);
|
int PrevLocVecSize = PowerOf2Ceil(PrevLocSize);
|
||||||
IntegerType *IntLocTy =
|
IntegerType *IntLocTy =
|
||||||
IntegerType::getIntNTy(C, sizeof(PREV_LOC_T) * CHAR_BIT);
|
IntegerType::getIntNTy(C, sizeof(PREV_LOC_T) * CHAR_BIT);
|
||||||
if (ngram_size) PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize);
|
if (ngram_size)
|
||||||
|
PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize
|
||||||
|
#if LLVM_VERSION_MAJOR >= 12
|
||||||
|
,
|
||||||
|
false
|
||||||
|
#endif
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get globals for the SHM region and the previous location. Note that
|
/* Get globals for the SHM region and the previous location. Note that
|
||||||
|
@ -978,8 +978,11 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
"AFL_DONT_OPTIMIZE: disable optimization instead of -O3\n"
|
"AFL_DONT_OPTIMIZE: disable optimization instead of -O3\n"
|
||||||
"AFL_HARDEN: adds code hardening to catch memory bugs\n"
|
"AFL_HARDEN: adds code hardening to catch memory bugs\n"
|
||||||
"AFL_INST_RATIO: percentage of branches to instrument\n"
|
"AFL_INST_RATIO: percentage of branches to instrument\n"
|
||||||
|
#if LLVM_VERSION_MAJOR < 9
|
||||||
"AFL_LLVM_NOT_ZERO: use cycling trace counters that skip zero\n"
|
"AFL_LLVM_NOT_ZERO: use cycling trace counters that skip zero\n"
|
||||||
|
#else
|
||||||
"AFL_LLVM_SKIP_NEVERZERO: do not skip zero on trace counters\n"
|
"AFL_LLVM_SKIP_NEVERZERO: do not skip zero on trace counters\n"
|
||||||
|
#endif
|
||||||
"AFL_LLVM_LAF_SPLIT_COMPARES: enable cascaded comparisons\n"
|
"AFL_LLVM_LAF_SPLIT_COMPARES: enable cascaded comparisons\n"
|
||||||
"AFL_LLVM_LAF_SPLIT_COMPARES_BITW: size limit (default 8)\n"
|
"AFL_LLVM_LAF_SPLIT_COMPARES_BITW: size limit (default 8)\n"
|
||||||
"AFL_LLVM_LAF_SPLIT_SWITCHES: casc. comp. in 'switch'\n"
|
"AFL_LLVM_LAF_SPLIT_SWITCHES: casc. comp. in 'switch'\n"
|
||||||
|
@ -225,8 +225,14 @@ bool AFLCoverage::runOnModule(Module &M) {
|
|||||||
PrevLocSize = 1;
|
PrevLocSize = 1;
|
||||||
|
|
||||||
#ifdef AFL_HAVE_VECTOR_INTRINSICS
|
#ifdef AFL_HAVE_VECTOR_INTRINSICS
|
||||||
uint64_t PrevLocVecSize = PowerOf2Ceil(PrevLocSize);
|
int PrevLocVecSize = PowerOf2Ceil(PrevLocSize);
|
||||||
if (ngram_size) PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize);
|
if (ngram_size)
|
||||||
|
PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize
|
||||||
|
#if LLVM_VERSION_MAJOR >= 12
|
||||||
|
,
|
||||||
|
false
|
||||||
|
#endif
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get globals for the SHM region and the previous location. Note that
|
/* Get globals for the SHM region and the previous location. Note that
|
||||||
|
Reference in New Issue
Block a user