-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hainest/main
Add README for sources
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Splitting Corpus::getStringLocationFromType into three separate functions: | ||
|
||
1. Convert a language type into its corresponding ABI register class | ||
a. pg20 in the AMD64 ABI doc | ||
|
||
b. See [X86_64ABIInfo::classify](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/TargetInfo.cpp#L2790) for how LLVM does it. Note that their implementation is incomplete, but will get the "basic" types correct. | ||
|
||
c. The [merge](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/TargetInfo.cpp#L2750) and [postMerge](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/TargetInfo.cpp#L2717) steps should probably be factored out, but not accessible by the user of our class. | ||
|
||
2. Allocate register/memory resources | ||
a. I haven't found code for this yet. I'll keep looking | ||
|
||
3. Handle return values | ||
1. It's the same classification rules, but the allocation is different |