[asm-instrumentation] Asm instrumentation is generated by llvm now.
Details
Diff Detail
Event Timeline
lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp | ||
---|---|---|
177–179 | Small and Large variants seem to have a lot of common code. | |
259 | This does not take load/store alignment into account. | |
337 | Why is stack realigned only on 64 bits? | |
test/Instrumentation/AddressSanitizer/X86/asm_attr.ll | ||
15–16 | @PLT here and below? | |
test/Instrumentation/AddressSanitizer/X86/asm_mov.ll | ||
17 | Might want to match jump label with |
PTAL
lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp | ||
---|---|---|
177–179 | I've checked Small and Large variants side-by-side and looks like after merge the code would be messy due to a lot of branches. I'd prefer to leave both variants as is. | |
259 | Done. | |
337 | Done. | |
test/Instrumentation/AddressSanitizer/X86/asm_attr.ll | ||
15–16 | Done. | |
test/Instrumentation/AddressSanitizer/X86/asm_mov.ll | ||
17 | Good point, thanks! |
Small and Large variants seem to have a lot of common code.
Would it be possible to factor out the common parts, or maybe even merge the two functions? AFAIU, the only real difference between them should be the presents of a slow path check in Small.