r294637 - [DebugInfo] Added support to Clang FE for generating debug info for preprocessor macros.

2017-02-09 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Thu Feb 9 16:07:24 2017 New Revision: 294637 URL: http://llvm.org/viewvc/llvm-project?rev=294637=rev Log: [DebugInfo] Added support to Clang FE for generating debug info for preprocessor macros. Added "-fdebug-macro" flag (and "-fno-debug-macro" flag) to enable (and to

r290515 - [DebugInfo] Added support for Checksum debug info feature.

2016-12-25 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Sun Dec 25 04:12:27 2016 New Revision: 290515 URL: http://llvm.org/viewvc/llvm-project?rev=290515=rev Log: [DebugInfo] Added support for Checksum debug info feature. Differential Revision: https://reviews.llvm.org/D27641 Added:

r289701 - [DebugInfo] Changed DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory.

2016-12-14 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Wed Dec 14 14:24:40 2016 New Revision: 289701 URL: http://llvm.org/viewvc/llvm-project?rev=289701=rev Log: [DebugInfo] Changed DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory. This way it will be easier to expand DIFile (e.g., to contain

Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-08-07 Thread Amjad Aboud via cfe-commits
aaboud marked an inline comment as not done. Comment at: include/clang/Basic/Attr.td:1674 @@ +1673,3 @@ + TargetSpecificAttr { + let Spellings = [GNU<"no_caller_saved_registers">]; + let Subjects = SubjectList<[FunctionLike], WarnDiag,

Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-08-07 Thread Amjad Aboud via cfe-commits
aaboud marked 3 inline comments as done. aaboud added a comment. In https://reviews.llvm.org/D22045#506996, @joerg wrote: > For what it is worth, this certainly seems to be misnamed. By nature, if it > doesn't preserve at least the stack pointer, there is no way to recover on > return, right?

Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-08-04 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 66810. aaboud added a comment. Made "no_caller_saved_registers" part of function prototype. This will allow Clang to yell a warning when there is a mismatch between function pointer and assigned function value. Thanks to Erich for implementing this addition

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-31 Thread Amjad Aboud via cfe-commits
aaboud added a comment. > ISTM that the DWARF spec intended such thunks to be encoded as > `DW_AT_trampoline`. That seems more appropriate than relying on codegen > emitting a tailcall. This way the debugger can make the policy decision of > whether or not thunks should show up in the

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-31 Thread Amjad Aboud via cfe-commits
aaboud added a comment. Reverting https://reviews.llvm.org/rL244207, would be fine if we assure that PR24235, is fixed in another way. I added Reid who helped reviewing the original patch https://reviews.llvm.org/D11476. https://reviews.llvm.org/D22900

Re: [PATCH] D16135: Macro Debug Info support in Clang

2016-07-26 Thread Amjad Aboud via cfe-commits
aaboud added reviewers: erichkeane, bwyma. aaboud updated this revision to Diff 65551. aaboud added a comment. Updated patch to top of trunk (r276746) - Thanks to Ranjeet Singh. Please, provide your feedback. https://reviews.llvm.org/D16135 Files: include/clang/AST/ASTConsumer.h

Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-07-24 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 65269. aaboud added a comment. Updated test according to comments. https://reviews.llvm.org/D22045 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/CGCall.cpp lib/Sema/SemaDeclAttr.cpp

Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-07-24 Thread Amjad Aboud via cfe-commits
aaboud marked an inline comment as done. Comment at: include/clang/Basic/Attr.td:1657 @@ +1656,3 @@ + TargetSpecificAttr { + let Spellings = [GNU<"no_caller_saved_registers">]; + let Subjects = SubjectList<[FunctionLike], WarnDiag,

[PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-07-06 Thread Amjad Aboud via cfe-commits
aaboud created this revision. aaboud added reviewers: ABataev, DavidKreitzer, hjl.tools, qcolombet. aaboud added a subscriber: cfe-commits. This patch implements the Clang part for no_caller_saved_registers attribute as appear in [[

Re: [PATCH] D21766: [codeview][clang] Added support for unnamed bitfield type.

2016-07-05 Thread Amjad Aboud via cfe-commits
aaboud abandoned this revision. aaboud added a comment. Different implementation was committed at http://reviews.llvm.org/rL274201. http://reviews.llvm.org/D21766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21783: [CodeView] Implement support for bitfields in Clang

2016-06-28 Thread Amjad Aboud via cfe-commits
aaboud accepted this revision. aaboud added a comment. This revision is now accepted and ready to land. LGTM. Please update PR28162. http://reviews.llvm.org/D21783 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21783: [CodeView] Implement support for bitfields in Clang

2016-06-28 Thread Amjad Aboud via cfe-commits
aaboud added a comment. Looks good, one minor comments below. Comment at: lib/CodeGen/CGDebugInfo.h:243 @@ +242,3 @@ + llvm::DIScope *RecordTy, + const RecordDecl *RD, SourceLocation Loc); +

[PATCH] D21766: [codeview][clang] Added support for unnamed bitfield type.

2016-06-27 Thread Amjad Aboud via cfe-commits
aaboud created this revision. aaboud added reviewers: rnk, majnemer. aaboud added subscribers: cfe-commits, bwyma. Allow creating DI metadata for non-zero width unnamed bitfield members when emitting CodeView. This is needed for patch D21489. http://reviews.llvm.org/D21766 Files:

r268151 - Reverting 268055 as it caused PR27579.

2016-04-29 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Fri Apr 29 20:44:38 2016 New Revision: 268151 URL: http://llvm.org/viewvc/llvm-project?rev=268151=rev Log: Reverting 268055 as it caused PR27579. Removed: cfe/trunk/test/CodeGenCXX/debug-info-lb.cpp Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Re: [PATCH] D19727: [MS] Improved implementation #pragma pack (MS pragmas, part 2)

2016-04-29 Thread Amjad Aboud via cfe-commits
aaboud added a subscriber: aaboud. Comment at: cfe/trunk/lib/Sema/SemaAttr.cpp:110 @@ -200,3 +109,3 @@ case POAK_Reset: // Reset just pops the top of the stack, or resets the current alignment to You forgot to initialize "Alignment" in this case. This

r268055 - Recommitted r264281 "Supporting all entities declared in lexical scope in LLVM debug info."

2016-04-29 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Fri Apr 29 11:08:08 2016 New Revision: 268055 URL: http://llvm.org/viewvc/llvm-project?rev=268055=rev Log: Recommitted r264281 "Supporting all entities declared in lexical scope in LLVM debug info." After fixing PR26942 in r267004. Added:

r264281 - Recommitted r263425 "Supporting all entities declared in lexical scope in LLVM debug info."

2016-03-24 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Thu Mar 24 08:30:41 2016 New Revision: 264281 URL: http://llvm.org/viewvc/llvm-project?rev=264281=rev Log: Recommitted r263425 "Supporting all entities declared in lexical scope in LLVM debug info." After fixing PR26942 (the fix is included in this commit). Differential

r263425 - Recommitted r261634 "Supporting all entities declared in lexical scope in LLVM debug info."

2016-03-14 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Mon Mar 14 07:03:55 2016 New Revision: 263425 URL: http://llvm.org/viewvc/llvm-project?rev=263425=rev Log: Recommitted r261634 "Supporting all entities declared in lexical scope in LLVM debug info." After fixing PR26715 at r263379. Added:

r263380 - Added test that covers changes in r263379.

2016-03-13 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Sun Mar 13 06:12:57 2016 New Revision: 263380 URL: http://llvm.org/viewvc/llvm-project?rev=263380=rev Log: Added test that covers changes in r263379. Added: cfe/trunk/test/CodeGen/debug-info-imported-entity.cpp Added:

r262830 - Resolved Bug 26414.

2016-03-07 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Mon Mar 7 08:22:46 2016 New Revision: 262830 URL: http://llvm.org/viewvc/llvm-project?rev=262830=rev Log: Resolved Bug 26414. https://llvm.org/bugs/show_bug.cgi?id=26414 Since interrupt handler must be returned with iret, tail call can't be used. Differential Revision:

Re: [PATCH] D17853: Disable tail-call optimization for X86 interrupt handlers

2016-03-07 Thread Amjad Aboud via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262830: Resolved Bug 26414. (authored by aaboud). Changed prior to commit: http://reviews.llvm.org/D17853?vs=49746=49953#toc Repository: rL LLVM http://reviews.llvm.org/D17853 Files:

[PATCH] D17853: Disable tail-call optimization for X86 interrupt handlers

2016-03-03 Thread Amjad Aboud via cfe-commits
aaboud created this revision. aaboud added reviewers: hjl.tools, DavidKreitzer, ABataev. aaboud added a subscriber: cfe-commits. Resolved Bug 26414. https://llvm.org/bugs/show_bug.cgi?id=26414 Since interrupt handler must be returned with iretq, tail call can't be used.

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-23 Thread Amjad Aboud via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261634: Supporting all entities declared in lexical scope in LLVM debug info. (authored by aaboud). Changed prior to commit: http://reviews.llvm.org/D15977?vs=47988=48808#toc Repository: rL LLVM

r261634 - Supporting all entities declared in lexical scope in LLVM debug info.

2016-02-23 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Tue Feb 23 07:37:18 2016 New Revision: 261634 URL: http://llvm.org/viewvc/llvm-project?rev=261634=rev Log: Supporting all entities declared in lexical scope in LLVM debug info. Differential Revision: http://reviews.llvm.org/D15977 Added:

Re: [PATCH] D16135: Macro Debug Info support in Clang

2016-02-15 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 47997. aaboud marked an inline comment as done. aaboud added a comment. Applied Adrian comment. http://reviews.llvm.org/D16135 Files: include/clang/AST/ASTConsumer.h lib/AST/ASTConsumer.cpp lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-15 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 47988. aaboud added a comment. Simplified LIT tests according to David comment. http://reviews.llvm.org/D15977 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGDecl.cpp test/CodeGenCXX/debug-info-lb.cpp Index:

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-02 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 46708. aaboud added a comment. Reduced the LIT tests and added comment explaining part of it. http://reviews.llvm.org/D15977 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGDecl.cpp test/CodeGenCXX/debug-info-lb.cpp

Re: [PATCH] D16135: Macro Debug Info support in Clang

2016-01-26 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 46034. aaboud marked 6 inline comments as done. aaboud added a comment. Added comments explaining the implementation. http://reviews.llvm.org/D16135 Files: include/clang/AST/ASTConsumer.h lib/AST/ASTConsumer.cpp lib/CodeGen/CGDebugInfo.cpp

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-01-20 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 45400. aaboud added a comment. Merged all 4 Lit tests into one. http://reviews.llvm.org/D15977 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGDecl.cpp test/CodeGenCXX/debug-info-lb.cpp Index: lib/CodeGen/CGDecl.cpp

Re: [PATCH] D16135: Macro Debug Info support in Clang

2016-01-13 Thread Amjad Aboud via cfe-commits
aaboud added inline comments. Comment at: include/clang/AST/ASTConsumer.h:163 @@ -155,1 +162,3 @@ + /// The caller takes ownership on the returned pointer. + virtual std::unique_ptr CreatePreprocessorCallbacks(Preprocessor ); }; Richard, I know that you

[PATCH] D16135: Macro Debug Info support in Clang

2016-01-13 Thread Amjad Aboud via cfe-commits
aaboud created this revision. aaboud added reviewers: dblaikie, rsmith, aprantl, probinson. aaboud added a subscriber: cfe-commits. Added support for FE Clang to create Debug Info entries (DIMacro and DIMacroFile) into generated module if "debug-info-kind" flag is set to "standalone".

Re: [PATCH] D13014: [X86] Add XSAVE intrinsics (Clang part)

2015-10-13 Thread Amjad Aboud via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL250158: [X86] Add XSAVE intrinsic family (authored by aaboud). Changed prior to commit: http://reviews.llvm.org/D13014?vs=37108=37238#toc Repository: rL LLVM http://reviews.llvm.org/D13014 Files:

r250158 - [X86] Add XSAVE intrinsic family

2015-10-13 Thread Amjad Aboud via cfe-commits
Author: aaboud Date: Tue Oct 13 07:29:35 2015 New Revision: 250158 URL: http://llvm.org/viewvc/llvm-project?rev=250158=rev Log: [X86] Add XSAVE intrinsic family Add intrinsics for the XSAVE instructions (XSAVE/XSAVE64/XRSTOR/XRSTOR64) XSAVEOPT instructions (XSAVEOPT/XSAVEOPT64) XSAVEC

Re: [PATCH] D13014: [X86] Add XSAVE intrinsics (Clang part)

2015-10-12 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 37108. aaboud added a comment. Added two LIT tests to check the xsave intrinsic instructions. Repository: rL LLVM http://reviews.llvm.org/D13014 Files: include/clang/Basic/BuiltinsX86.def lib/CodeGen/CGBuiltin.cpp lib/Headers/CMakeLists.txt

[PATCH] D13014: [X86] Add XSAVE intrinsics (Clang part)

2015-09-21 Thread Amjad Aboud via cfe-commits
aaboud created this revision. aaboud added reviewers: mkuper, delena, craig.topper. aaboud added a subscriber: cfe-commits. aaboud set the repository for this revision to rL LLVM. Add intrinsics for the XSAVE instructions: XSAVE, XSAVE64 XRSTOR, XRSTOR64 XSAVEOPT, XSAVEOPT64 XRSTORS, XRSTORS64