diff options
| author | Dan Gohman <gohman@apple.com> | 2010-07-06 15:23:00 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-07-06 15:23:00 +0000 |
| commit | 1e33b18e28452a28c8d7107bb261c017a0609a84 (patch) | |
| tree | c59a104cd66ff6d2718b91f6ddc46e4378b73bb1 /llvm | |
| parent | f855b39edd5f4fed8874c7ade2f60c9f897dc97a (diff) | |
| download | bcm5719-llvm-1e33b18e28452a28c8d7107bb261c017a0609a84.tar.gz bcm5719-llvm-1e33b18e28452a28c8d7107bb261c017a0609a84.zip | |
Add some more TODO comments.
llvm-svn: 107657
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index b1aa4ca6884..60654e61701 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -201,6 +201,8 @@ void Lint::visitFunction(Function &F) { // fairly common mistake to neglect to name a function. Assert1(F.hasName() || F.hasLocalLinkage(), "Unusual: Unnamed function with non-local linkage", &F); + + // TODO: Check for irreducible control flow. } void Lint::visitCallSite(CallSite CS) { @@ -224,6 +226,7 @@ void Lint::visitCallSite(CallSite CS) { "argument count", &I); // Check argument types (in case the callee was casted) and attributes. + // TODO: Verify that caller and callee attributes are compatible. Function::arg_iterator PI = F->arg_begin(), PE = F->arg_end(); CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end(); for (; AI != AE; ++AI) { @@ -361,6 +364,7 @@ void Lint::visitReturnInst(ReturnInst &I) { } // TODO: Check that the reference is in bounds. +// TODO: Check readnone/readonly function attributes. void Lint::visitMemoryReference(Instruction &I, Value *Ptr, unsigned Size, unsigned Align, const Type *Ty, unsigned Flags) { @@ -501,6 +505,8 @@ void Lint::visitAllocaInst(AllocaInst &I) { // This isn't undefined behavior, it's just an obvious pessimization. Assert1(&I.getParent()->getParent()->getEntryBlock() == I.getParent(), "Pessimization: Static alloca outside of entry block", &I); + + // TODO: Check for an unusual size (MSB set?) } void Lint::visitVAArgInst(VAArgInst &I) { |

